public void AttemptLogin_returns_no_account_found_with_no_accounts() { // Given A.CallTo(() => userService.GetUsersByUsername(Username)) .Returns((null, new List <DelegateUser>())); // When var result = loginService.AttemptLogin(Username, Password); // Then using (new AssertionScope()) { result.LoginAttemptResult.Should().Be(LoginAttemptResult.InvalidCredentials); result.Accounts.AdminAccount.Should().BeNull(); result.Accounts.DelegateAccounts.Should().BeEmpty(); } }