/// <summary> /// Set currency directory /// </summary> /// <param name="currencyDictionary">Currency dictionary</param> /// <returns>CurrencyTransformerBuilder instance</returns> internal CurrencyTransformerBuilder SetCurrencyDictionary( ICurrencyDictionary currencyDictionary) { _currencyDictionary = currencyDictionary; return(this); }
public GenericCurrencyTransformer( INumberTransformer numberTransformer, ICurrencyDictionary currencyDictionary, INounInflector nounInflector) { _numberTransformer = numberTransformer; _currencyDictionary = currencyDictionary; _nounInflector = nounInflector; }
protected Algorithm(ICurrencyDictionary dictionary, ICurrencyDeflation currencyDeflation, string splitDecimal, bool withStems) { if (dictionary == null) { throw new ArgumentNullException(nameof(dictionary)); } if (currencyDeflation == null) { throw new ArgumentNullException(nameof(currencyDeflation)); } this.dictionary = dictionary; this.currencyDeflation = currencyDeflation; this.splitDecimal = splitDecimal; this.withStems = withStems; }
public CurrencyAlgorithm(ICurrencyDictionary dictionary, ICurrencyDeflation currencyDeflation, string splitDecimal, bool stems) : base(dictionary, currencyDeflation, splitDecimal, stems) { }