Ejemplo n.º 1
0
        [TestCase("5", 0)] // non existings
        public void GetOrdersAverageAmountForClient_ShouldReturnCorrectAmount(
            string clientId, double expectedAmount)
        {
            var result = _ordersQueries.GetOrdersAverageAmountForClient(clientId);

            Assert.That(expectedAmount, Is.EqualTo(result));
        }
 private void OnGenerate(object sender, EventArgs e)
 {
     _ordersAverage      = _ordersQueries.GetOrdersAverageAmountForClient(_view.SelectedClientId);
     _view.OrdersAverage = _ordersAverage;
     _view.CanSave       = true;
 }