예제 #1
0
        public void OrderIsPlacedOnTruck()
        {
            var lineItems = new List <StockAlteration>
            {
                new StockAlteration(TestId1, 1)
            };

            var trucks = _truckService.GetBatches(lineItems);

            Assert.AreEqual(_testProd1.Weight, trucks[0].TotalWeight);

            /*var items = trucks[0].items.ToList();
             * items.Should().HaveCount(1, "");
             * items[0].Gtin.Should().Be("abcd1234", "");
             * items[0].Name.Should().Be("Test Item", "");
             * items[0].Quantity.Should().Be(1, "");
             * items[0].WeightPerItem.Should().Be(100, "");
             * items[0].TotalWeight.Should().Be(100, "");*/
        }