public CustomerEditOrderForm(IContract contract) { InitializeComponent(); SetStrings(); presenter = new CustomerEditOrderPresenter(this, contract); Products = presenter.GetAllProducts().ToList(); }
public void Initialize() { mockCustomerEditOrderView = Substitute.For<ICustomerEditOrderView>(); mockContract = Substitute.For<IContract>(); presenter = new CustomerEditOrderPresenter(mockCustomerEditOrderView, mockContract); }