Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
        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)));
        }