Exemple #1
0
 public AjaxController(IShippingCostsLookup shippingCostsLookup, IShippingZonesLookup shippingZonesLookup, IConfigurationWrapper configuration)
 {
     _shippingCostsLookup = shippingCostsLookup;
     _shippingZonesLookup = shippingZonesLookup;
     _configuration = configuration;
     _calculator = new Calculator(_shippingZonesLookup, _shippingCostsLookup);
 }
 public ShippingCalculationTests()
 {
     IShippingCostsLookup costsLookup = new AlternateShippingCostsLookup();
     IShippingZonesLookup zonesLookup = new AlternateShippingZonesLookup();
     calc = new Calculator(zonesLookup, costsLookup);
 }