public void ApplyLanguageSettings(ILanguageSettingsProvider languageSettingsProvider)
 {
     if (languageSettingsProvider != null)
     {
         ChangeLanguage(languageSettingsProvider.Language);
     }
 }
Exemple #2
0
 public VerseRetriever(ILanguageSettingsProvider languageSettingsProvider,
                       IVerseParser verseParser,
                       ILogger <VerseRetriever> logger)
 {
     _languageSettingsProvider = languageSettingsProvider;
     _verseParser = verseParser;
     _logger      = logger;
 }
        public void SetupTest()
        {
            _languageSettingsProvider = new LanguageSettingsProvider();

            _bibleBookProviderMock = new BibleBookProviderMock();

            _verseParser = new VerseParser(_bibleBookProviderMock.Object);

            _loggerMock = new Mock <ILogger <VerseRetriever> >();
        }
 public LanguageSwitcher(ILanguageSettingsProvider languageSettingsProvider)
 {
     this.ApplyLanguageSettings(languageSettingsProvider);
 }
 public void ApplyLanguageSettings(ILanguageSettingsProvider languageSettingsProvider)
 {
     if (languageSettingsProvider != null)
         ChangeLanguage(languageSettingsProvider.Language);
 }
 public LanguageSwitcher(ILanguageSettingsProvider languageSettingsProvider)
 {
     this.ApplyLanguageSettings(languageSettingsProvider);
 }