public void Query_builder_PageCount_returns_100_records_if_not_overriden() { var returnList = new List <SCAudit>(); returnList = _sCAuditService.GetAll(); Assert.IsNotNull(returnList, "ReturnList returned null"); Assert.IsTrue(returnList.Count == 100, "ReturnList didn't return default 100 records : " + returnList.Count.ToString()); }
private List <SCAudit> GetAll_BaseQuery() { var returnList = new List <SCAudit>(); var startDateTimeString = "01/11/2017"; var endDateTimeString = "30/11/2017"; DateTime.TryParse(startDateTimeString, out var startDateTime); DateTime.TryParse(endDateTimeString, out var endDateTime); _sCAuditService.StartDate = startDateTime; _sCAuditService.EndDate = endDateTime; _sCAuditService.PageCount = 10000; returnList = _sCAuditService.GetAll(); return(returnList); }