Example #1
0
        [TestCase("5", 0)] // non existing
        public void GetOrdersQuantityForClient_ShouldReturnCorrectCount(
            string clientId, int expectedCount)
        {
            var result = _ordersQueries.GetOrdersQuantityForClient(clientId);

            Assert.That(expectedCount, Is.EqualTo(result));
        }
Example #2
0
 private void OnGenerate(object sender, EventArgs e)
 {
     _ordersQuantity      = _ordersQueries.GetOrdersQuantityForClient(_view.SelectedClientId);
     _view.OrdersQuantity = _ordersQuantity;
     _view.CanSave        = true;
 }