コード例 #1
0
        public void OrderItem_With_ProductID_1_Should_Return_Product1_ForToString() {
            Product p = _catalogService.GetProduct(1);
            OrderItem item1 = new OrderItem(p, 5);

            Assert.AreEqual("Product1", item1.ToString());
        }
コード例 #2
0
        public void OrderItem_Should_Return_ProductName_ForToString() {
            Product p = _catalogService.GetProduct(1);
            OrderItem item = new OrderItem(Guid.NewGuid(), p, 5);

            Assert.AreEqual("Product1",item.ToString());

        }