コード例 #1
0
 public ModelFacade()
 {
     dataAccessFacade = new DataAccessFacade();
     customerController = new CustomerController(dataAccessFacade.GetCustomers());
     saleController = new SaleController(dataAccessFacade.GetSales());
     paymentRuleCatalogController = new PaymentRuleCatalogController(dataAccessFacade.GetPaymentRuleCatalogs());
     paymentContractController = new PaymentContractController(dataAccessFacade.GetPaymentContracts());
     paymentRuleController = new PaymentRuleController(dataAccessFacade.GetPaymentRules());
     bookingController = new BookingController(dataAccessFacade.GetBookings());
     supplierController = new SupplierController(dataAccessFacade.GetSuppliers());
 }
コード例 #2
0
 public DataAccessFacade()
 {
     customerController = new CustomerController();
     saleController = new SaleController();
     paymentRuleCatalogController = new PaymentRuleCatalogController();
     paymentContractController = new PaymentContractController();
     paymentRuleController = new PaymentRuleController();
     bookingController = new BookingController();
     paymentController = new PaymentController();
     supplierController = new SupplierController();
 }