public MainWindow() { InitializeComponent(); CustomerInterface = new CustomerImp(); tableDTG.ItemsSource = CustomerInterface.findAllCustomers(); combox.ItemsSource = CustomerInterface.findAllCategories(); combox.DisplayMemberPath = "libelle"; }
public void TestCustomersTest() { ICustomer customer = new CustomerInterface(); ICustomerV1 readCustomer = new CustomerWithRead(); Assert.IsInstanceOfType(customer, typeof(ICustomer)); Assert.IsNotInstanceOfType(customer, typeof(ICustomerV1)); Assert.IsInstanceOfType(readCustomer, typeof(ICustomer)); Assert.IsInstanceOfType(readCustomer, typeof(ICustomerV1)); }
public CustomerController(CustomerInterface customerInterface) { _context = customerInterface; }