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;
 }
Example #3
0
 public CurrencyConversionController(IDateRange dateRange, IDateChecker dateChecker
                                     , ICurrencyConversionService currencyConversionService, ICurrencyNameChecker currencyNameChecker, ICurrenciesSelectList currenciesSelectList)
 {
     _currencyConversionService = currencyConversionService;
     _dateChecker          = dateChecker;
     _dateRange            = dateRange;
     _currencyNameChecker  = currencyNameChecker;
     _currenciesSelectList = currenciesSelectList;
 }
Example #4
0
        /// <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;
        }
Example #5
0
 // Constructor injection
 public BookingManager(IRepository <Booking> bookingRepository, IRepository <Room> roomRepository, IDateChecker dateChecker)
 {
     this._bookingRepository = bookingRepository;
     this._roomRepository    = roomRepository;
     this.dateChecker        = dateChecker;
 }