public void TestDAOForOrderGetByClient()
        {
            IOrderRepository order = new DummyDAOForOrder();

            CollectionAssert.AreEqual(new List <Order> {
                Storage.Orders[0]
            }, order.GetByClient(Storage.Clients[0]));
        }
Exemplo n.º 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;
 }
 public void TestDAOForOrderGetByClient()
 {
     IOrderRepository order = new DummyDAOForOrder();
     CollectionAssert.AreEqual(new List<Order> { Storage.Orders[0] },order.GetByClient(Storage.Clients[0]));
 }