public StockInBillEvent (IContext ctx, IStockInBillRepository repStockInBill, IDomainService service) { _context = ctx; _service_Domain = service; _rep_StockInBill = repStockInBill; }
public StockInBillApp() { _context = ServiceLocator.Instance.GetService <IContext>(); _rep_StockInBill = ServiceLocator.Instance.GetService <IStockInBillRepository> (new KeyValuePair <string, object>("ctx", _context)); _service_Domain = new Ego.Domain.Service.DomainService(_context, _rep_Inventory); _event_StockInBill = new Ego.Domain.Events.StockInBillEvent(_context, _rep_StockInBill, _service_Domain); //_service_Domain = ServiceLocator.Instance.GetService<IServiceDomain> // (new KeyValuePair<string, object>("ctx", _context), // new KeyValuePair<string, object>("repInventory", _rep_Inventory)); //_event_StockInBill = ServiceLocator.Instance.GetService<EventStockInBill> // (new KeyValuePair<string, object>("ctx", _context), // new KeyValuePair<string, object>("repStockInBill", _rep_StockInBill), // new KeyValuePair<string, object>("service", _service_Domain)); }