Example #1
0
 public ShippingCostService(IShippingCostCalculationStrategy calculationStrategy)
 {
     CalculationStrategy = calculationStrategy;
 }
 public SmartShippingCostCalculatorService(
     IShippingCostCalculationStrategy strategy)
 {
     _strategy = strategy ?? throw new ArgumentNullException(nameof(strategy));
 }