Exemplo n.º 1
0
 public void Setup()
 {
     culture            = CultureInfo.GetCultureInfo("en-US");
     _dictionaryService = GetDictionaryLocalizedTextService(culture);
     _xmlService        = GetXmlService(culture);
     _optimized         = GetOptimizedService(culture);
     _optimizedDict     = GetOptimizedServiceDict(culture);
     var result1 = _dictionaryService.Localize("language", culture);
     var result2 = _xmlService.Localize("language", culture);
     var result3 = _dictionaryService.GetAllStoredValues(culture);
     var result4 = _xmlService.GetAllStoredValues(culture);
     var result5 = _optimized.GetAllStoredValues(culture);
     var result6 = _xmlService.GetAllStoredValues(culture);
     var result7 = _optimized.GetAllStoredValuesByAreaAndAlias(culture);
 }
Exemplo n.º 2
0
 public void OriginalXmlGetAll()
 {
     for (int i = 0; i < 10000; i++)
     {
         var result = _xmlService.GetAllStoredValues(culture);
     }
 }
Exemplo n.º 3
0
 public void OriginalDictionaryGetAll()
 {
     for (int i = 0; i < 10000; i++)
     {
         var result = _dictionaryService.GetAllStoredValues(culture);
     }
 }