public OffhireDomainService( IOffhireRepository offhireRepository, IRepository<OffhireDetail> offhireDetailRepository, ICharteringDomainService charteringDomainService, IInventoryManagementDomainService inventoryManagementDomainService, IFuelReportDomainService fuelReportDomainService, IVesselInCompanyDomainService vesselDomainService, IVoyageDomainService voyageDomainService, ICurrencyDomainService currencyDomainService) { this.offhireRepository = offhireRepository; this.offhireDetailRepository = offhireDetailRepository; this.charteringDomainService = charteringDomainService; this.inventoryManagementDomainService = inventoryManagementDomainService; this.fuelReportDomainService = fuelReportDomainService; this.vesselDomainService = vesselDomainService; this.voyageDomainService = voyageDomainService; this.currencyDomainService = currencyDomainService; this.isOffhireOpen = new IsOffhireOpen(); this.isOffhireSubmitted = new IsOffhireSubmitted(); this.isOffhireSubmitRejected = new IsOffhireSubmitRejected(); this.isOffhireCancelled = new IsOffhireCancelled(); }
public FuelReportDomainService( IFuelReportRepository fuelReportRepository, IVoyageDomainService voyageDomainService, IInventoryOperationDomainService inventoryOperationDomainService, IInventoryOperationRepository inventoryOperationRepository, IInventoryOperationFactory inventoryOperationFactory, IOrderDomainService orderDomainService, IInventoryManagementDomainService inventoryManagementDomainService, ICharteringDomainService charteringDomainService) { this.fuelReportRepository = fuelReportRepository; this.voyageDomainService = voyageDomainService; this.inventoryOperationDomainService = inventoryOperationDomainService; this.inventoryOperationRepository = inventoryOperationRepository; this.inventoryOperationFactory = inventoryOperationFactory; this.orderDomainService = orderDomainService; this.inventoryManagementDomainService = inventoryManagementDomainService; this.charteringDomainService = charteringDomainService; this.isFuelReportNotCancelled = new IsFuelReportNotCancelled(); this.isFuelReportIssued = new IsFuelReportIssued(inventoryOperationDomainService); this.isFuelReportInFinalApprovedState = new IsFuelReportClosed(); this.isFuelReportOperational = new IsFuelReportOperational(); isFuelReportSubmitted = new IsFuelReportSubmitted(); }