示例#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);
 }