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)); } }
public void Go() { var ldl = new LocaleDataLoader(language); var locale = Delegate(language, ldl); Repeat(locale, repeats, messRate, ldl); }
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)); } }
public LocaleBy(string l, LocaleDataLoader ldl) : base(l, ldl) { locale = l; faker = new Faker <Log>(locale: "ru"); base.ldl = ldl; }
public LocaleEn(string l, LocaleDataLoader ldl) : base(l, ldl) { locale = l; faker = new Faker <Log>(locale: localeCode); base.ldl = ldl; }