public void AddBatchTranslation(
            Dictionary <string, string> languageAndTextPairs)
        {
            var item = new InMemoryTranslationSnapshotItem();

            _items.Add(item);

            foreach (var pair in languageAndTextPairs)
            {
                item.LanguageAndTextPairs[pair.Key] = pair.Value;
            }
        }
        public void AddTranslation(
            string sourceLanguageCode,
            string destinationLanguageCode,
            string sourceText,
            string destinationText)
        {
            var item = _items.FirstOrDefault(
                i => i.LanguageAndTextPairs.Any(j => j.Key.EqualsNoCase(sourceLanguageCode) &&
                                                j.Value.EqualsNoCase(sourceText)));

            if (item == null)
            {
                item = new InMemoryTranslationSnapshotItem();
                _items.Add(item);
            }

            item.LanguageAndTextPairs[destinationLanguageCode] = destinationText;
        }