Exemple #1
0
        public void GetOrdersForClient_ShouldReturnAllClientsOrders(
            string clientId, int expectedCount)
        {
            var result = _ordersQueries.GetOrdersForClient(clientId);

            Assert.That(expectedCount, Is.EqualTo(result.Count));
        }
 private void OnGenerate(object sender, EventArgs e)
 {
     _orders       = _ordersQueries.GetOrdersForClient(_view.SelectedClientId);
     _view.Orders  = new SortableBindingList <OrderDto>(_orders);
     _view.CanSave = true;
 }