public void AuthenticationServiceIsValidLogin_UsingAUrl_IsAuthenticated() { IAuthenticationService authService = new TestAuthenticationService(); bool isAuthenticated = authService.IsValidLogin(new Uri("http://test.com/")); Assert.IsTrue(isAuthenticated); }
public void AuthenticationServiceIsValidLogin_UsingUserNameAndPassword_IsAuthenticated() { IAuthenticationService authService = new TestAuthenticationService(); bool isAuthenticated = authService.IsValidLogin("test", "password"); Assert.IsTrue(isAuthenticated); }
public void AuthenticationServiceIsValidLogin_InvalidUserAndPassword_IsNotAuthenticated() { IAuthenticationService authService = new TestAuthenticationService(); bool isAuthenticated = authService.IsValidLogin("poo", "poo"); Assert.IsFalse(isAuthenticated); }