public void ShouldRedirectToErrorPageWhenThereAreExistingUsers() { _accountController = new TestAccountController(1); var result = (HttpStatusCodeResult)_accountController.Register(); result.StatusCode.Should().Be(403); }
public void Setup() { _accountController = new TestAccountController(); _accountService = new Mock<AccountService>(); _accountController.AccountService = _accountService.Object; }
public void ShouldRedirectToErrorPageWhenThereAreExistingUsers() { _accountController = new TestAccountController(1); var result = (HttpStatusCodeResult) _accountController.Register(); result.StatusCode.Should().Be(403); }
public void Setup() { _accountController = new TestAccountController(); _accountService = new Mock <AccountService>(); _accountController.AccountService = _accountService.Object; }