[TestCase("5", 0)] // non existing public void GetOrdersQuantityForClient_ShouldReturnCorrectCount( string clientId, int expectedCount) { var result = _ordersQueries.GetOrdersQuantityForClient(clientId); Assert.That(expectedCount, Is.EqualTo(result)); }
private void OnGenerate(object sender, EventArgs e) { _ordersQuantity = _ordersQueries.GetOrdersQuantityForClient(_view.SelectedClientId); _view.OrdersQuantity = _ordersQuantity; _view.CanSave = true; }