public void CanGetCustomerOrderHistory() { IDaoFactory daoFactory = new NHibernateDaoFactory(); IHistoricalOrderSummaryDao historicalOrderSummaryDao = daoFactory.GetHistoricalOrderSummaryDao(); List<HistoricalOrderSummary> foundSummaries = historicalOrderSummaryDao.GetCustomerOrderHistoryFor(TestGlobals.TestCustomer.ID); Assert.AreEqual(11, foundSummaries.Count); }
private void ShowProductsOrdered(Customer customer) { IDaoFactory daoFactory = new NHibernateDaoFactory(); IHistoricalOrderSummaryDao orderSummaryDao = daoFactory.GetHistoricalOrderSummaryDao(); grdProductsOrdered.DataSource = orderSummaryDao.GetCustomerOrderHistoryFor(customer.ID); grdProductsOrdered.DataBind(); }
public void CanGetCustomerOrderHistory() { IDaoFactory daoFactory = new NHibernateDaoFactory(); IHistoricalOrderSummaryDao historicalOrderSummaryDao = daoFactory.GetHistoricalOrderSummaryDao(); List <HistoricalOrderSummary> foundSummaries = historicalOrderSummaryDao.GetCustomerOrderHistoryFor(TestGlobals.TestCustomer.ID); Assert.AreEqual(11, foundSummaries.Count); }
private void ShowProductsOrdered(Customer customer) { IDaoFactory daoFactory = new NHibernateDaoFactory(); IHistoricalOrderSummaryDao orderSummaryDao = daoFactory.GetHistoricalOrderSummaryDao(); grdProductsOrdered.DataSource = orderSummaryDao.GetCustomerOrderHistoryFor(customer.ID); grdProductsOrdered.DataBind(); }