Example #1
0
 public AjaxController(IShippingCostsLookup shippingCostsLookup, IShippingZonesLookup shippingZonesLookup, IConfigurationWrapper configuration)
 {
     _shippingCostsLookup = shippingCostsLookup;
     _shippingZonesLookup = shippingZonesLookup;
     _configuration       = configuration;
     _calculator          = new Calculator(_shippingZonesLookup, _shippingCostsLookup);
 }
Example #2
0
 public AjaxController(IShippingCostsLookup shippingCostsLookup, IShippingZonesLookup shippingZonesLookup, IConfigurationWrapper configuration)
 {
     _shippingCostsLookup = shippingCostsLookup;
     _shippingZonesLookup = shippingZonesLookup;
     _configuration = configuration;
     _calculator = new Calculator(_shippingZonesLookup, _shippingCostsLookup);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Calculator"/> class.
 /// </summary>
 public Calculator(IShippingZonesLookup zoneLookupClient, IShippingCostsLookup costLookupClient)
 {
     _costLookupClient = costLookupClient;
     _zoneLookupClient = zoneLookupClient;
     Results = new CalculationResults();
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Calculator"/> class.
 /// </summary>
 public Calculator(IShippingZonesLookup zoneLookupClient, IShippingCostsLookup costLookupClient)
 {
     _costLookupClient = costLookupClient;
     _zoneLookupClient = zoneLookupClient;
     Results           = new CalculationResults();
 }