public AjaxController(IShippingCostsLookup shippingCostsLookup, IShippingZonesLookup shippingZonesLookup, IConfigurationWrapper configuration) { _shippingCostsLookup = shippingCostsLookup; _shippingZonesLookup = shippingZonesLookup; _configuration = configuration; _calculator = new Calculator(_shippingZonesLookup, _shippingCostsLookup); }
/// <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(); }