public void ShouldNotAddProductWhenQuantityIsOutOfStock()
 {
     var orderItem = new OrderItem();
     Assert.AreEqual(false, orderItem.AddProductScopeIsValid(ProductFactory.ValidProduct, 320, 30));
 }
Example #2
0
 public void AddItem(OrderItem item)
 {
     if (item.Register())
         OrderItems.Add(item);
 }