Example #1
0
        public void ShouldRedirectToErrorPageWhenThereAreExistingUsers()
        {
            _accountController = new TestAccountController(1);
            var result = (HttpStatusCodeResult)_accountController.Register();

            result.StatusCode.Should().Be(403);
        }
 public void ShouldRedirectToErrorPageWhenThereAreExistingUsers()
 {
     _accountController = new TestAccountController(1);
     var result = (HttpStatusCodeResult) _accountController.Register();
     result.StatusCode.Should().Be(403);
 }
Example #3
0
        public void ShouldRenderRegisterPageWhenThereIsNoUser()
        {
            var result = (ViewResult)_accountController.Register();

            result.ViewName.Should().Be("Register");
        }