Ejemplo n.º 1
0
        public void OnCustomerIdSelectedSetCustomerName()
        {
            customerService.GetCustomersByIdCalled       = false;
            customerService.ReturnedCustomer.CompanyName = "My test company name";

            presenter.OnCustomerIdSelected("Customer1");

            Assert.IsTrue(customerService.GetCustomersByIdCalled);
            Assert.AreEqual(customerService.ReturnedCustomer.CompanyName, view.CustomerName);
        }
 protected void SelectButton_Click(object sender, EventArgs e)
 {
     _presenter.OnCustomerIdSelected(SearchCustomerControl.SelectedCustomerId);
     SearchCustomerControl.ClearView();
 }