public void getAllCustomersSalesReport() { LaundryReportDao reportDao = new LaundryReportDao(); List<LaundryDaySummaryDataEntity> entities = reportDao.GetCustomerSalesReport(null,DateTime.Now.AddDays(-5), DateTime.Now.AddDays(5), true) as List<LaundryDaySummaryDataEntity>; Assert.NotNull(entities); foreach(LaundryDaySummaryDataEntity entity in entities) { Console.WriteLine("daystamp: " + entity.DayStamp); Console.WriteLine("transcount: " + entity.TransCount); Console.WriteLine("sales: " + entity.TotalSales); } }
public void getSpecificCustomerSalesReport() { CustomerDataEntity customer = new CustomerDao().GetByName("John Dee"); LaundryReportDao reportDao = new LaundryReportDao(); List<LaundryDaySummaryDataEntity> entities = reportDao.GetCustomerSalesReport(customer, DateTime.Now.AddDays(-5), DateTime.Now.AddDays(5), false) as List<LaundryDaySummaryDataEntity>; Assert.NotNull(entities); foreach(LaundryDaySummaryDataEntity entity in entities) { Console.WriteLine("daystamp: " + entity.DayStamp); Console.WriteLine("transcount: " + entity.TransCount); Console.WriteLine("sales: " + entity.TotalSales); } }