Exemplo n.º 1
0
 void initData()
 {
     this._serviceProduct   = new ProductService(new ProductRepository());
     this._serviceBillInfo  = new BillInfoService(new BillInfoRepository());
     this._serviceBill      = new BillService(new BillRepository());
     this._serviceTableFood = new TableFoodService(new TableFoodRepository());
 }
Exemplo n.º 2
0
 void InitData()
 {
     this._serviceTable    = new TableFoodService(new TableFoodRepository());
     this._serviceBillInfo = new BillInfoService(new BillInfoRepository());
     this._serviceBill     = new BillService(new BillRepository());
     this._serviceCategory = new ProductCategoryService(new ProductCategoryRepository());
     this._serviceProduct  = new ProductService(new ProductRepository());
 }
Exemplo n.º 3
0
 void Init()
 {
     this._serviceBill      = new BillService(new BillRepository());
     this._serviceBillInfo  = new BillInfoService(new BillInfoRepository());
     this._serviceTableFood = new TableFoodService(new TableFoodRepository());
 }
Exemplo n.º 4
0
 public BillInfoController(IBillInfoService billInfoService, IBillInfoModelService billInfoModelService)
 {
     this.billInfoService      = billInfoService;
     this.billInfoModelService = billInfoModelService;
 }
Exemplo n.º 5
0
 public BillController(IMapper mapper,
                       IBillInfoService billInfoService)
 {
     _mapper          = mapper;
     _billInfoService = billInfoService;
 }
 public BillInfoModelService(IBillInfoService billInfoService, ICompanyService companyService, IProductService productService)
 {
     this.billInfoService = billInfoService;
     this.companyService  = companyService;
     this.productService  = productService;
 }
Exemplo n.º 7
0
 void InitData()
 {
     this._serviceBill     = new BillService(new BillRepository());
     this._serviceBillInfo = new BillInfoService(new BillInfoRepository());
 }