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

            total.Should().Be(0);
        }
Beispiel #2
0
 public double GetInvoiceTotalWithStrategy(IInvoiceTotalStrategy totalStrategy)
 {
     return(totalStrategy.CalculateTotal(_products));
 }