Beispiel #1
0
        public OrderShipmentTest()
        {
            _orderRepository      = new InMemOrderRepository();
            _inMemShipmentService = new InMemShipmentService();

            _orderShipment = new OrderShipment(_orderRepository, _inMemShipmentService);
        }
Beispiel #2
0
        public OrderCreationTest()
        {
            var foodCategory = new Category {
                Name = "food", TaxPercentage = 10
            };

            _productCatalog = new InMemProductCatalog(new List <Product> {
                new Product {
                    Name = "salad", Price = 3.56M, Category = foodCategory
                },
                new Product {
                    Name = "tomato", Price = 4.65M, Category = foodCategory
                },
            });

            _orderRepository = new InMemOrderRepository();
        }
Beispiel #3
0
 public OrderApprovalTest()
 {
     _orderRepository = new InMemOrderRepository();
     _orderApproval   = new OrderApproval(_orderRepository);
 }