Esempio n. 1
0
        public async Task AuthenticatePasswordWithUsename_UserAuthentication_UsernameAndPasswordDoNotAuthenticateSuccesfully(string password, string username)
        {
            IDataGateway           dataGateway           = new SQLServerGateway();
            IConnectionStringData  connectionString      = new ConnectionStringData();
            IUserAccountRepository userAccount           = new UserAccountRepository(dataGateway, connectionString);
            IAuthenticationService authenticationService = new AuthenticationService(userAccount);
            bool AuthenticationToken = await authenticationService.AuthenticatePasswordWithUsename(password, username);

            if (AuthenticationToken == true)
            {
                Assert.IsTrue(false);
            }
            else
            {
                Assert.IsTrue(true);
            }
        }