예제 #1
0
        public void CheckIfCultureIsSetToEnglishTest()
        {
            var x = new LocalizationFunctions(Context, Settings);

            x.SetLocalizationLanguage("en");

            Assert.AreEqual("en", Settings.Culture);
        }
예제 #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);
 }