Пример #1
0
        public void Get_all_with_parameter_returns_fltered_users()
        {
            NhUserDal efUserDal = new NhUserDal(new SqlServerHelper());

            var result = efUserDal.GetList(p => p.UserName.Contains("om"));

            Assert.AreEqual(1, result.Count);
        }
Пример #2
0
        public void Get_all_returns_all_users()
        {
            NhUserDal efUserDal = new NhUserDal(new SqlServerHelper());

            var result = efUserDal.GetList();

            Assert.AreEqual(2, result.Count);
        }