public void TestALotSize() { IDbMasterDataCache dbMasterDataCache = ZppConfiguration.CacheManager.GetMasterDataCache(); LotSize lotSize = new LotSize(new Quantity(6), dbMasterDataCache.M_ArticleGetAll()[0].GetId()); foreach (var quantity in lotSize.GetLotSizes()) { Assert.True(quantity.GetValue() == TestConfiguration.LotSize, $"Quantity ({quantity}) is not correct."); } }
public CustomerOrderCreator(Quantity defaultCustomerOrderQuantityPerCycle) { if (defaultCustomerOrderQuantityPerCycle != null && defaultCustomerOrderQuantityPerCycle.IsSmallerThan( _defaultCustomerOrderQuantityPerCycle)) { _defaultCustomerOrderQuantityPerCycle = defaultCustomerOrderQuantityPerCycle; } var orderArrivalRate = new OrderArrivalRate(0.025); IDbMasterDataCache masterDataCache = ZppConfiguration.CacheManager.GetMasterDataCache(); _orderGenerator = TestScenario.GetOrderGenerator(new MinDeliveryTime(200), new MaxDeliveryTime(1430), orderArrivalRate, masterDataCache.M_ArticleGetAll(), masterDataCache.M_BusinessPartnerGetAll()); }