Пример #1
0
 public void GivenTheUserHasEnteredAllTheInformation()
 {
     _registerModel = new RegisterModel
     {
         UserName = "******" + new Random(1000).NextDouble().ToString(),
         Email = "*****@*****.**",
         Password = "******",
         ConfirmPassword = "******"
     };
     _controller = new AccountController(_formsService.Object, _memberService.Object);
 }
Пример #2
0
 public void GivenTheUserHasNotEnteredTheUsername()
 {
     _registerModel = new RegisterModel
     {
         UserName = string.Empty,
         Email = "*****@*****.**",
         Password = "******",
         ConfirmPassword = "******"
     };
     _controller = new AccountController(_formsService.Object,
                      _memberService.Object);
 }
Пример #3
0
 public void WhenTheUserGoesToTheRegisterUserScreen()
 {
     _controller = new AccountController(_formsService.Object, _memberService.Object);
     _result = _controller.Register();
 }
Пример #4
0
 public void WhenTheUserGoesToTheRegisterUserScreen()
 {
     _controller = new AccountController();
     _result = _controller.Register();
 }