Esempio n. 1
0
        public void Creation_NoCount()
        {
            var cartItem = new CartItem(this._mockProduct.Object);

            cartItem.Product.Name.ShouldBe(PRODUCT_NAME);
            cartItem.Count.ShouldBe(1);
            cartItem.FullPrice.ShouldBe(PRODUCT_PRICE);
            cartItem.GetPriceWithDiscount(null).ShouldBe(PRODUCT_PRICE);
        }