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>(); _startDateTimeString = string.IsNullOrEmpty(_startDateTimeString) ? "01/11/2017" : _startDateTimeString; _endDateTimeString = string.IsNullOrEmpty(_endDateTimeString) ? "30/11/2017" : _endDateTimeString; DateTime.TryParse(_startDateTimeString, out var startDateTime); DateTime.TryParse(_endDateTimeString, out var endDateTime); _sCAuditService.StartDate = startDateTime; _sCAuditService.EndDate = endDateTime; _sCAuditService.PageCount = 10000000; returnList = _sCAuditService.GetAll(); return(returnList); }