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 } } }; }
public UnitTestsAdminController() { _repository = new MockOrderRepository(); _orderService = new OrderService(_repository); _controller = new AdminController(_orderService); }