private KanbanDataUtil _kanbanDataUtil(ProductionDbContext dbContext) { var machineFacade = new MachineFacade(_serviceProviderStandard(), dbContext); var machineDataUtil = new MachineDataUtil(machineFacade); var kanbanFacade = new KanbanFacade(_serviceProviderStandard(), dbContext); //MachineDataUtil machineDataUtil, KanbanFacade facade return(new KanbanDataUtil(machineDataUtil, kanbanFacade)); }
protected override DailyOperationDataUtil DataUtil(DailyOperationFacade facade, ProductionDbContext dbContext = null) { IServiceProvider serviceProvider = GetServiceProviderMock(dbContext).Object; MachineFacade machineFacade = new MachineFacade(serviceProvider, dbContext); MachineDataUtil machineDataUtil = new MachineDataUtil(machineFacade); KanbanFacade kanbanFacade = new KanbanFacade(serviceProvider, dbContext); KanbanDataUtil kanbanDataUtil = new KanbanDataUtil(machineDataUtil, kanbanFacade); DailyOperationDataUtil dataUtil = new DailyOperationDataUtil(kanbanDataUtil, facade); return(dataUtil); }