Esempio n. 1
0
        public static DbAuthor FillBlanks(Gender gender)
        {
            var p = NewPerson.FillBlanks(gender);
            var b = new DbAuthor(p.First, p.Last, p.Patronimic, (eWriterType)NewValue.Int(2));

            All.Add(b);
            return(b);
        }
Esempio n. 2
0
        public new static NewPerson FillBlanks(Gender gender)
        {
            var p = Person.FillBlanks(gender);
            var b = new NewPerson()
            {
                First = p.First,
                Last  = p.Last
            };

            if (gender == Gender.Female)
            {
                b.Patronimic = FemalePatronymics[NewValue.Int(FemalePatronymics.Count)];
            }
            else
            {
                b.Patronimic = MalePatronymics[NewValue.Int(MalePatronymics.Count)];
            }

            return(b);
        }