示例#1
0
        public User Get(string login, string password)
        {
            var userAdoInfra = new UserInfraADO();
            var objUser      = userAdoInfra.Get(login, password);

            return(objUser);
        }
示例#2
0
        public void NoReturn_Invalid_User()
        {
            var loginForTest        = "admin";
            var passwordForTest     = "pwd1231";
            var userInfraAdoForTest = new UserInfraADO();
            var testResult          = userInfraAdoForTest.Get(loginForTest, passwordForTest);

            Assert.IsNull(testResult);
        }
示例#3
0
        public void Return_Valid_User()
        {
            var userExpected = new User {
                Id = 1
            };
            var loginForTest        = "admin";
            var passwordForTest     = "pwd123";
            var userInfraAdoForTest = new UserInfraADO();
            var testResult          = userInfraAdoForTest.Get(loginForTest, passwordForTest);

            Assert.AreEqual(userExpected.Id, testResult.Id);
        }