public InventoryAdminService( IApplicationRequestServices requestServices, ILogger <InventoryAdminService> logger, IInventoryMicroService inventoryMicroService) : base(requestServices, logger) { InventoryMicroService = inventoryMicroService ?? throw new ArgumentNullException(nameof(inventoryMicroService)); }
public KitMicroService( IApplicationRequestServices requestServices, ILogger <KitMicroService> logger, IDesignMicroService designMicroService, IInventoryMicroService inventoryMicroService, IProjectMicroService projectMicroService) : base(requestServices, logger) { DesignMicroService = designMicroService ?? throw new ArgumentNullException(nameof(designMicroService)); InventoryMicroService = inventoryMicroService ?? throw new ArgumentNullException(nameof(inventoryMicroService)); ProjectMicroService = projectMicroService ?? throw new ArgumentNullException(nameof(projectMicroService)); }
public ProjectMicroService( IApplicationLocale locale, ILogger <ProjectMicroService> logger, IQuiltContextFactory quiltContextFactory, IProjectEventMicroService projectEventService, IInventoryMicroService inventoryMicroService) : base( locale, logger, quiltContextFactory) { ProjectEventService = projectEventService ?? throw new ArgumentNullException(nameof(projectEventService)); InventoryMicroService = inventoryMicroService ?? throw new ArgumentNullException(nameof(inventoryMicroService)); }
public EventProcessorMicroService( IApplicationRequestServices requestServices, ILogger <EventProcessorMicroService> logger, ICommunicationMicroService communicationMicroService, IFulfillmentMicroService fulfillmentMicroService, IFundingMicroService fundingMicroService, IInventoryMicroService inventoryMicroService, IOrderMicroService orderMicroService, IProjectMicroService projectMicroService, ISquareMicroService squareMicroService, IUserMicroService userMicroService) : base(requestServices, logger) { CommunicationMicroService = communicationMicroService ?? throw new ArgumentNullException(nameof(communicationMicroService)); FulfillmentMicroService = fulfillmentMicroService ?? throw new ArgumentNullException(nameof(fulfillmentMicroService)); FundingMicroService = fundingMicroService ?? throw new ArgumentNullException(nameof(fundingMicroService)); InventoryMicroService = inventoryMicroService ?? throw new ArgumentNullException(nameof(inventoryMicroService)); OrderMicroService = orderMicroService ?? throw new ArgumentNullException(nameof(orderMicroService)); ProjectMicroService = projectMicroService ?? throw new ArgumentNullException(nameof(projectMicroService)); SquareMicroService = squareMicroService ?? throw new ArgumentNullException(nameof(squareMicroService)); UserMicroService = userMicroService ?? throw new ArgumentNullException(nameof(userMicroService)); }
private static IList <MKit_KitPart> MKit_KitParts(Kit kit, IInventoryMicroService InventoryMicroService) { var kitParts = new List <MKit_KitPart>(); foreach (var part in kit.Parts) { var inventoryItem = InventoryMicroService.GetEntry(part.Sku); kitParts.Add(new MKit_KitPart() { Id = part.Id, Sku = part.Sku, Quantity = part.Quantity, UnitOfMeasure = MKit_KitPartUnitOfMeasures(part.AreaSize), WebColor = part.Color.WebColor, Description = inventoryItem.Name, Manufacturer = inventoryItem.Manufacturer, Collection = inventoryItem.Collection }); } return(kitParts); }