Exemplo n.º 1
0
        public FakeData(PhraseType infoType, Language language) : base()
        {
            _infoType = infoType;
            _language = language;
            var types     = new PhraseTypes();
            var commodity = types[7];
            var langs     = new Languages();
            var arabic    = langs[2];
            var english   = langs[1];

            _translates = new List <Translator>();
            _translates.Add(new Translator(1, new Phrase(1, "قیر", commodity), arabic, ""));
            _translates.Add(new Translator(2, new Phrase(2, "گندم", commodity), arabic, ""));
            _translates.Add(new Translator(3, new Phrase(3, "طلا", commodity), arabic, ""));
            _translates.Add(new Translator(4, new Phrase(4, "باقر", commodity), english, ""));
            _translates.Add(new Translator(5, new Phrase(5, "تیم ملی", commodity), english, ""));
            _translates.Add(new Translator(6, new Phrase(6, "تیرآهن", commodity), arabic, ""));
            _translates.Add(new Translator(7, new Phrase(7, "شیر", commodity), arabic, ""));
            _translates.Add(new Translator(8, new Phrase(8, "مرغ", commodity), english, ""));
            _translates.Add(new Translator(9, new Phrase(9, "جون", commodity), english, ""));
            _translates.Add(new Translator(10, new Phrase(10, "آدمیزاد", commodity), arabic, ""));
            _translates.Add(new Translator(1, new Phrase(1, "قیر", commodity), english, ""));
            _translates.Add(new Translator(2, new Phrase(2, "گندم", commodity), english, ""));
        }
 string IPhraseProvider.GetPhrase(PhraseTypes type)
 {
     return(phrases[type]);
 }
Exemplo n.º 3
0
        public IEnumerable <PhraseType> GetPhraseTypes()
        {
            var types = new PhraseTypes();

            return(types.Items);
        }