public void getAllCharges()
 {
     chargeDao = new LaundryChargeDao();
     IList<LaundryChargeDataEntity> charges = chargeDao.GetAllItems() as List<LaundryChargeDataEntity>;
     Assert.AreEqual(2, charges.Count);
     foreach(LaundryChargeDataEntity charge in charges){
         Console.WriteLine(charge.Name);
     }
 }
 public void saveNewCharge()
 {
     chargeDao = new LaundryChargeDao();
     LaundryChargeDataEntity charge = new LaundryChargeDataEntity();
     charge.Name = "Pickup";
     charge.Amount = 10.00M;
     chargeDao.SaveOrUpdate(charge);
     charge = new LaundryChargeDataEntity();
     charge.Name = "Deliver";
     charge.Amount = 20.00M;
     chargeDao.SaveOrUpdate(charge);
 }
 public LaundryViewPresenter(ILaundryView p_view, ILaundryDao p_laundryDao)
 {
     this.m_view = p_view;
     m_laundryDao = p_laundryDao;
     m_categoryDao = new LaundryCategoryDao();
     m_serviceDao = new LaundryServiceDao();
     m_customerDao = new CustomerDao();
     m_chargeDao = new LaundryChargeDao();
     m_summaryDao = new LaundryDaySummaryDao();
     m_priceDao = new LaundryPriceSchemeDao();
     m_jobChargeDao = new LaundryJobChargesDao();
     m_jobChecklistDao = new LaundryJobCheckListDao();
     m_paymentDetailDao = new LaundryPaymentDetailDao();
     m_checklistDao = new LaundryChecklistDao();
     m_detailDao = new LaundryDetailDao();
     m_printerDao = new PrinterDao();
     m_companyDao = new CompanyDao();
 }
 public LaundryChargesViewPresenter(ILaundryChargesView p_view)
 {
     this.m_view = p_view;
     m_laundryChargeDao = new LaundryChargeDao();
 }
 public void Setup()
 {
     NHibernateHelper.OpenSession();
     chargeDao = new LaundryChargeDao();
 }