public void Setup() { _randomOrders = NorthwindInitializer.GetOrders(); _orderRepository = SetupOrderRepository(); _randomProducts = SetupProducts(); _productRepository = SetupProductRepository(); _randomCustomers = NorthwindInitializer.GetCustomers(); _customerRepository = SetupCustomerRepository(); _unitOfWork = new Mock <IUnitOfWork>().Object; }
public void Setup() { _unitOfWork = new Mock <IUnitOfWork>().Object; _randomProducts = SetupProducts(); _productRepository = SetupProductRepository(); _randomOrders = NorthwindInitializer.GetOrders(); _orderRepository = SetupOrderRepository(); _randomCustomers = NorthwindInitializer.GetCustomers(); _customerRepository = SetupCustomerRepository(); _productService = new ProductService(_productRepository, _unitOfWork); _orderService = new OrderService(_orderRepository, _unitOfWork); _customerService = new CustomerService(_customerRepository, _unitOfWork); _dummyAddress = "http://test.com/"; }