public LocalExtremeController(IDateRange dateRange, IExtremesServices extremesServices, IDateChecker dateChecker, ICurrenciesSelectList currenciesSelectList) { _extremeServices = extremesServices; _dateChecker = dateChecker; _currenciesSelectList = currenciesSelectList; _dateRange = dateRange; }
public CurrencyComparisionController(ICurrenciesComparator currenciesComparator, IDateRange dateRange, IDateChecker dateChecker , ICurrencyNameChecker currencyNameChecker, ICurrenciesSelectList currenciesSelectList) { _currenciesComparator = currenciesComparator; _dateChecker = dateChecker; _dateRange = dateRange; _currencyNameChecker = currencyNameChecker; _currenciesSelectList = currenciesSelectList; }
public CurrencyConversionController(IDateRange dateRange, IDateChecker dateChecker , ICurrencyConversionService currencyConversionService, ICurrencyNameChecker currencyNameChecker, ICurrenciesSelectList currenciesSelectList) { _currencyConversionService = currencyConversionService; _dateChecker = dateChecker; _dateRange = dateRange; _currencyNameChecker = currencyNameChecker; _currenciesSelectList = currenciesSelectList; }
/// <summary> /// Constructor for testing purposes, allows to redefine the date header /// verification logic. /// </summary> /// <param name="publicKey">The public key encoded in base64Url</param> /// <param name="checker">The date checker instance, available for mocking.</param> public Verifier(string publicKey, IDateChecker checker) { // Be lenient of different base64 formats publicKey = publicKey.Replace("+", "-"); publicKey = publicKey.Replace("/", "_"); publicKey = publicKey.Replace("=+$", ""); this.publicKey = publicKey; this.checker = checker; }
// Constructor injection public BookingManager(IRepository <Booking> bookingRepository, IRepository <Room> roomRepository, IDateChecker dateChecker) { this._bookingRepository = bookingRepository; this._roomRepository = roomRepository; this.dateChecker = dateChecker; }