コード例 #1
0
        public void xU_Int_AuthenticateUser_ValidCredentials_ReturnTrue()
        {
            //Initialize
            Initilize();
            _devUtilities.ExecuteSqlScriptContent(_connectionString, SqlStatementStrings.IntAuthenticateUserWithValidCredentialsReturnTrue);

            //Arrange
            var targetObject = new UserServices(new EfUserRepository());
            var userName     = "******";
            var password     = "******";

            //Act
            var result = targetObject.AuthenticateUser(userName, password);

            //Assert
            Assert.True(result);

            //Cleaning
            _devUtilities.DeleteTableDataAndRessedId("Users", _connectionString);
        }