Exemple #1
0
 private void Repeat(DefaultLocale locale, int repeats, double messRate, LocaleDataLoader ldl)
 {
     for (var i = 0; i < repeats; i++)
     {
         Console.WriteLine(MessUp.DoMess(locale.GenerateLog(), ldl.data.Alphabet, messRate));
     }
 }
Exemple #2
0
        public void Go()
        {
            var ldl    = new LocaleDataLoader(language);
            var locale = Delegate(language, ldl);

            Repeat(locale, repeats, messRate, ldl);
        }
Exemple #3
0
 private DefaultLocale Delegate(string lang, LocaleDataLoader ldl)
 {
     if (lang == "be_BY")
     {
         return(new LocaleBy(lang, ldl));
     }
     else if (lang == "ru_RU")
     {
         return(new LocaleRu(lang, ldl));
     }
     else
     {
         return(new LocaleEn(lang, ldl));
     }
 }
Exemple #4
0
 public LocaleBy(string l, LocaleDataLoader ldl) : base(l, ldl)
 {
     locale   = l;
     faker    = new Faker <Log>(locale: "ru");
     base.ldl = ldl;
 }
Exemple #5
0
 public LocaleEn(string l, LocaleDataLoader ldl) : base(l, ldl)
 {
     locale   = l;
     faker    = new Faker <Log>(locale: localeCode);
     base.ldl = ldl;
 }