public FlightPriceController() { _pathMapper = new ServerPathMapper(); _flightPricesRepository = new FlightCsvRepository("prices", _pathMapper); _currencyRateRepository = new CurrencyRateCsvRepository("currencies", _defaultCurrency, _pathMapper); _dataSanitizer = new FlightDataSanitizer(); _priceRangeCalculator = new FlightDataCalculator(_dataSanitizer); }
public FlightPriceController(IPathMapper pathmapper, IFlightPricesRepository flightPricesRepository, ICurrencyRateRepository currencyRateRepository, IDataSanitizer <Flight> dataSanitizer, IPriceRangeCalculator <Flight> priceRangeCalculator) { _pathMapper = pathmapper; _flightPricesRepository = flightPricesRepository; _currencyRateRepository = currencyRateRepository; _dataSanitizer = dataSanitizer; _priceRangeCalculator = priceRangeCalculator; }