Ejemplo n.º 1
0
        public void GetOrdersQuantityGroupedByNameForClient_ShouldReturnCorrectCount(
            string clientId, int expectedCount)
        {
            var result = _ordersQueries.GetOrdersQuantityGroupedByNameForClient(clientId);

            Assert.That(expectedCount, Is.EqualTo(result.Count));
        }
 private void OnGenerate(object sender, EventArgs e)
 {
     _groupings      = _ordersQueries.GetOrdersQuantityGroupedByNameForClient(_view.SelectedClientId);
     _view.Groupings = new Infrastructure.SortableBindingList <OrderQuantityByNameDto>(_groupings);
     _view.CanSave   = true;
 }