public void TestDecreaseProductStorageQuantitiesByOrderQuantities()
        {
            Assert.ThrowsException <ArgumentNullException>(() => _productsManager.DecreaseProductStorageQuantitiesByOrderQuantities(null));
            List <Product> products = CreateUniqueProductIdQualifiedProducts();

            products[1].StorageQuantity = 5;
            products[2].StorageQuantity = 2;
            var productWithOrderQuantityContainers = new Dictionary <Product, int> {
                { products[1], 2 }, { products[2], 2 }
            };

            _productsManager.DecreaseProductStorageQuantitiesByOrderQuantities(productWithOrderQuantityContainers);
            Assert.AreEqual(products[1].StorageQuantity, 3);
            Assert.AreEqual(products[2].StorageQuantity, 0);
        }
 /// <summary>
 /// Submit the order.
 /// </summary>
 public void SubmitOrder()
 {
     _productsManager.DecreaseProductStorageQuantitiesByOrderQuantities(_order.GetProductWithOrderQuantityContainers());
     _order.ClearOrder();
 }