コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            CustomerInterface        = new CustomerImp();
            tableDTG.ItemsSource     = CustomerInterface.findAllCustomers();
            combox.ItemsSource       = CustomerInterface.findAllCategories();
            combox.DisplayMemberPath = "libelle";
        }
コード例 #2
0
        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));
        }
コード例 #3
0
 public CustomerController(CustomerInterface customerInterface)
 {
     _context = customerInterface;
 }