コード例 #1
0
        public void TestDAOForOrderGetByClient()
        {
            IOrderRepository order = new DummyDAOForOrder();

            CollectionAssert.AreEqual(new List <Order> {
                Storage.Orders[0]
            }, order.GetByClient(Storage.Clients[0]));
        }
コード例 #2
0
 private void FillControls()
 {
     firstNameTextEdit.Text  = _client.Person.FirstName;
     middleNameTextEdit.Text = _client.Person.MiddleName;
     lastNameTextEdit.Text   = _client.Person.LastName;
     cityTextEdit.Text       = _client.ClientLocation.City;
     adressRichTextBox.AppendText(_client.ClientLocation.Adress);
     foreach (var telephone in _client.Telephones)
     {
         telephonesRichTextBox.AppendText(telephone);
     }
     ordersGridControl.DataSource = _orders.GetByClient(_client);
     //here's will be getting comments for this client and adding it to richtextbox
     isActiveCheckEdit.Checked = _client.IsActive;
 }
コード例 #3
0
 public void TestDAOForOrderGetByClient()
 {
     IOrderRepository order = new DummyDAOForOrder();
     CollectionAssert.AreEqual(new List<Order> { Storage.Orders[0] },order.GetByClient(Storage.Clients[0]));
 }