public void InitMVP() { view = new MockSavedDrafts(); ordersService = new MockOrdersService(); ordersController = new MockOrdersController(); ordersConverter = new OrderManagement.Orders.Converters.OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter<Employee, EmployeeDisplay>()); httpContextLocatorService = new MockHttpContextLocatorService(); presenter = new SavedDraftsPresenter(ordersService, ordersController, ordersConverter, httpContextLocatorService); presenter.View = view; }
public void InitMVP() { view = new MockSavedDrafts(); ordersService = new MockOrdersService(); ordersController = new MockOrdersController(); ordersConverter = new OrderManagement.Orders.Converters.OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter <Employee, EmployeeDisplay>()); httpContextLocatorService = new MockHttpContextLocatorService(); presenter = new SavedDraftsPresenter(ordersService, ordersController, ordersConverter, httpContextLocatorService); presenter.View = view; }