예제 #1
0
        public async Task AuthenticatePasswordWithEmail_EmailAuthentication_EmailAndPasswordDoNotAuthenticateSuccesfully(string password, string email)
        {
            IDataGateway           dataGateway           = new SQLServerGateway();
            IConnectionStringData  connectionString      = new ConnectionStringData();
            IUserAccountRepository userAccount           = new UserAccountRepository(dataGateway, connectionString);
            IAuthenticationService authenticationService = new AuthenticationService(userAccount);
            bool AuthenticationToken = await authenticationService.AuthenticatePasswordWithEmail(password, email);

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