public void All_null_parameters_brings_all_values() { var service = new GenericService<WebLog>(new GenericRepository<WebLog>(new WebLogMockRepositoryContext())); Int32 itemCount; var result = service.Select(null, null, null, null, null, out itemCount); Assert.AreEqual(itemCount, result.Count); Assert.AreEqual(itemCount, webLogs.ToList().Count); }
public void Pagesize_10_and_pageindex_1_must_return_7_rows() { var service = new GenericService<WebLog>(new GenericRepository<WebLog>(new WebLogMockRepositoryContext())); Int32 itemCount; var result = service.Select(null, null, null, null, null, out itemCount); }