Exemplo n.º 1
0
 public UnitTestsOrderService()
 {
     _repository   = new MockOrderRepository();
     _orderService = new OrderService(_repository);
     _order        = new Order
     {
         FirstName     = "TestName",
         LastName      = "Testsson",
         OrderProducts = new List <OrderProduct>
         {
             new OrderProduct {
                 Name     = "TestProduct",
                 Price    = 29,
                 Quantity = 2
             }
         }
     };
 }
Exemplo n.º 2
0
 public UnitTestsAdminController()
 {
     _repository   = new MockOrderRepository();
     _orderService = new OrderService(_repository);
     _controller   = new AdminController(_orderService);
 }