public void CalculatesTotalWithNoProducts()
        {
            var total = _strategy.CalculateTotal(new List <Product>());

            total.Should().Be(0);
        }
Exemplo n.º 2
0
 public double GetInvoiceTotalWithStrategy(IInvoiceTotalStrategy totalStrategy)
 {
     return(totalStrategy.CalculateTotal(_products));
 }