public void Get_all_with_parameters_returns_filtered_category() { NhCategoryDal categoryDal = new NhCategoryDal(new SqlServerHelper()); var result = categoryDal.GetList(c => c.Description.Contains("sea")); Assert.AreEqual(2, result.Count); }
public void Get_all_returns_all_categories() { NhCategoryDal categoryDal = new NhCategoryDal(new SqlServerHelper()); var result = categoryDal.GetList(); Assert.AreEqual(8, result.Count); }
public void Nh_Get_All_Cats() { NhCategoryDal nhProductDal = new NhCategoryDal(new SqlServerHelper()); var result = nhProductDal.GetList(); Assert.AreEqual(8, result.Count); }
public void Get_all_with_parameter_returns_filtered_categories() { NhCategoryDal categoryDal = new NhCategoryDal(new SqlServerHelper()); var result = categoryDal.GetList(x => x.CategoryName.Contains("s")); Assert.AreEqual(6, result.Count); }
public void Get_all_with_NHiberNate_category() { var nhCategoryDal = new NhCategoryDal(new SqlServerHelper()); var result = nhCategoryDal.GetList(); Assert.AreEqual(8, result.Count); }