コード例 #1
0
        public void OrderRepository_Should_Return_orderItems()
        {
            IOrderRepository  rep    = new TestOrderRepository();
            IList <OrderItem> orders = rep.GetOrderItems().ToList();

            Assert.IsNotNull(orders);
        }
コード例 #2
0
        public void OrderRepository_Should_Accept_Product_1()
        {
            Product          p   = _catalogService.GetProduct(1);
            IOrderRepository rep = new TestOrderRepository();

            Order     order = new Order("testuser");
            OrderItem item1 = new OrderItem(p, 1);

            order.Items.Add(item1);

            Assert.AreEqual(1, order.Items.Count);
        }
コード例 #3
0
        public void OrderRepository_CanReturn_Transactions()
        {
            TestOrderRepository rep = new TestOrderRepository();

            Assert.IsNotNull(rep.GetTransactions());
        }
コード例 #4
0
        public void OrderRepository_CanReturn_Transactions()
        {
            TestOrderRepository rep = new TestOrderRepository();
            Assert.IsNotNull(rep.GetTransactions());

        }
コード例 #5
0
        public void OrderRepository_Should_Accept_Product_1() {

            Product p = _catalogService.GetProduct(1);
            IOrderRepository rep = new TestOrderRepository();

            Order order = new Order("testuser");
            OrderItem item1 = new OrderItem(p, 1);

            order.Items.Add(item1);

            Assert.AreEqual(1, order.Items.Count);

        }
コード例 #6
0
 public void OrderRepository_Should_Return_orderItems() {
     IOrderRepository rep = new TestOrderRepository();
     IList<OrderItem> orders = rep.GetOrderItems().ToList();
     Assert.IsNotNull(orders);
 }