Ejemplo n.º 1
0
        public void SmallOrderGetsPlacesOnSingleTruck()
        {
            var lineItems = new List <StockAlteration>
            {
                new StockAlteration(17, 3)
            };

            var trucks    = _truckService.CreateTruckLoad(lineItems);
            var truckList = trucks.ToList();

            Assert.AreEqual(truckList.Count, 1);
            Assert.AreEqual(truckList[0].TotalWeight, 300);
            Assert.AreEqual(truckList[0].Batches.Count, 1);
            Assert.AreEqual(truckList[0].Batches[0].Name, "Test Item");
        }