Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Subject(typeof(GilliamRegistrationHandler))]
- public class email_already_known : with_handler_and_views_and_container<object, GilliamRegistrationHandler>
- {
- Establish context = () =>
- {
- store.store_document(new User(new ClaimSet("test",
- Guid.NewGuid().AsClaim(ClaimType.NameIdentifier),
- "bob@mortimer.com".AsClaim(ClaimType.Email)), new GilliamConfig()));
- store.wait();
- };
- Because of = () => post("register", new GilliamRegistrationCommand()
- {
- Password = "Password1",
- ConfirmPassword = "Password1",
- Email = "bob@mortimer.com"
- });
- It is_not_ok = () => is_400();
- It does_not_store_pending_registration = () => store.load_document<PendingRegistration>("PendingRegistrations/1").ShouldBeNull();
- }
Add Comment
Please, Sign In to add comment