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