예제 #1
0
 public ConfigurationInventoryLocationProvider(
     IFulfillmentLocationsRepository fulfillmentLocationsRepository,
     IInventoryRepository inventoryRepository,
     IWebsiteContext websiteContext,
     ISiteConfiguration siteConfiguration)
 {
     FulfillmentLocationsRepository = fulfillmentLocationsRepository ?? throw new ArgumentNullException(nameof(fulfillmentLocationsRepository));
     InventoryRepository            = inventoryRepository ?? throw new ArgumentNullException(nameof(inventoryRepository));
     WebsiteContext    = websiteContext ?? throw new ArgumentNullException(nameof(websiteContext));
     SiteConfiguration = siteConfiguration;
 }
        public TestInventoryLocationProvider(
            IFulfillmentLocationsRepository fulfillmentLocationsRepository,
            IInventoryRepository inventoryRepository,
            ICookieAccessor <TestCookieDto> testCookieAccessor,
            IWebsiteContext websiteContext,
            ISiteConfiguration siteConfiguration)

            : base(
                fulfillmentLocationsRepository,
                inventoryRepository,
                websiteContext,
                siteConfiguration)
        {
            _testCookieAccessor = testCookieAccessor;
        }