public void OriginalDictionaryLocalize() { for (int i = 0; i < 10000; i++) { var result = _dictionaryService.Localize("language", culture); } }
public void OriginalXmlLocalize() { for (int i = 0; i < 10000; i++) { var result = _xmlService.Localize("language", culture); } }
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); }