public static Botan CreatePair(CoolParent parent) { if (parent == null) { throw new ArgumentNullException("null parent"); } Sex randomSex = Randomizer.GetRandomSex(); return(new Botan(Randomizer.GetRandomStudentAge(), NamesHelper.GenerateName(randomSex), randomSex, NamesHelper.PatronymicFromName(randomSex, parent.Name), MoneyHelper.MoneyToMark(parent.Money))); }
public static Student CreatePair(Parent parent) { if (parent == null) { throw new ArgumentNullException("null parent"); } Sex randomSex = Randomizer.GetRandomSex(); return(new Student(Randomizer.GetRandomStudentAge(), NamesHelper.GenerateName(randomSex), randomSex, NamesHelper.PatronymicFromName(randomSex, parent.Name))); }
public Human CreateHuman(Sex sex) { return(new Botan(Randomizer.GetRandomStudentAge(), NamesHelper.GenerateName(sex), sex, NamesHelper.GeneratePatronymic(sex), GetRandomAvgMark())); }
public Human CreateHuman(Sex sex) { return(new Parent(Randomizer.GetRandomParentAge(), NamesHelper.GenerateName(Sex.Man), Sex.Man, rnd.Next(maxChildsNum))); }