Esempio n. 1
0
        public void AuthenticationService_Service_Can_Authenticate_Using_Url()
        {
            IAuthenticationService authService = new TestAuthenticationService();
            bool isAuthenticated = authService.IsValidLogin(new Uri("http://test.com/"));

            Assert.IsTrue(isAuthenticated);
        }
Esempio n. 2
0
        public void AuthenticationService_Service_Fails_Using_Invalid_UserName_And_Password()
        {
            IAuthenticationService authService = new TestAuthenticationService();
            bool isAuthenticated = authService.IsValidLogin("poo", "poo");

            Assert.IsFalse(isAuthenticated);
        }
Esempio n. 3
0
        public void AuthenticationService_Service_Can_Authenticate_Using_UserName_And_Password()
        {
            IAuthenticationService authService = new TestAuthenticationService();
            bool isAuthenticated = authService.IsValidLogin("test", "password");

            Assert.IsTrue(isAuthenticated);
        }
        public void AuthenticationService_Service_Can_Authenticate_Using_Url() {

            IAuthenticationService authService = new TestAuthenticationService();
            bool isAuthenticated = authService.IsValidLogin(new Uri("http://test.com/"));
            Assert.IsTrue(isAuthenticated);
        }
        public void AuthenticationService_Service_Fails_Using_Invalid_UserName_And_Password() {

            IAuthenticationService authService = new TestAuthenticationService();
            bool isAuthenticated = authService.IsValidLogin("poo", "poo");
            Assert.IsFalse(isAuthenticated);
        }
        public void AuthenticationService_Service_Can_Authenticate_Using_UserName_And_Password() {

            IAuthenticationService authService = new TestAuthenticationService();
            bool isAuthenticated = authService.IsValidLogin("test", "password");
            Assert.IsTrue(isAuthenticated);
        }