Esempio n. 1
0
        public void CheckIfCultureIsSetToEnglishTest()
        {
            var x = new LocalizationFunctions(Context, Settings);

            x.SetLocalizationLanguage("en");

            Assert.AreEqual("en", Settings.Culture);
        }
Esempio n. 2
0
        public void CheckIfCurrencyIsSetToDollarTest()
        {
            var x = new LocalizationFunctions(Context, Settings);

            x.SetLocalizationLanguage("en");

            Assert.AreEqual("$", Context.CurrencySymbol);
        }
 /// <summary>
 /// Submits the asynchronous.
 /// </summary>
 /// <param name="e">The e.</param>
 /// <returns>Task.</returns>
 public override async Task SubmitAsync(string e)
 {
     _appSettingsService.Settings.Culture = e;
     _localizationFunctions.SetLocalizationLanguage(e);
     await base.SubmitAsync(e);
 }