public TransportplanungKomponenteFacade(IPersistenceServices persistenceService, ITransactionServices transactionService, IAuftragServicesFürTransportplanung auftragServices, IUnterbeauftragungServicesFürTransportplanung unterbeauftragungServices, ITransportnetzServicesFürTransportplanung transportnetzServices, ITimeServices timeServices) { Check.Argument(persistenceService != null, "persistenceService != null"); Check.Argument(transactionService != null, "transactionService != null"); Check.Argument(auftragServices != null, "auftragServices != null"); Check.Argument(unterbeauftragungServices != null, "unterbeauftragungsServices != null"); Check.Argument(transportnetzServices != null, "transportnetzServices != null"); this.transactionService = transactionService; this.auftragServices = auftragServices; this.tp_REPO = new TransportplanRepository(persistenceService); this.tpK_BL = new TransportplanungKomponenteBusinessLogic(tp_REPO, transactionService, auftragServices, unterbeauftragungServices, transportnetzServices, timeServices); }
public TransportplanungKomponenteBusinessLogic(TransportplanRepository tp_REPO, ITransactionServices transactionService, IAuftragServicesFürTransportplanung auftragServices, IUnterbeauftragungServicesFürTransportplanung unterbeauftragungServices, ITransportnetzServicesFürTransportplanung transportnetzServices, ITimeServices timeServices) { Check.Argument(tp_REPO != null, "tp_REPO != null"); Check.Argument(transactionService != null, "transactionService != null"); Check.Argument(auftragServices != null, "auftragServices != null"); Check.Argument(unterbeauftragungServices != null, "unterbeauftragungsServices != null"); Check.Argument(transportnetzServices != null, "transportnetzServices != null"); Check.Argument(timeServices != null, "timeServices != null"); this.tp_REPO = tp_REPO; this.transactionService = transactionService; this.auftragServices = auftragServices; this.unterbeauftragungServices = unterbeauftragungServices; this.transportnetzServices = transportnetzServices; this.timeServices = timeServices; this.planungsQueue = new BackgroundQueue(); }