Exemple #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);
        }
        public static DbReader FillBlanks(Gender gender)
        {
            var p = NewPerson.FillBlanks(gender);
            var b = new DbReader(p.First, p.Last, p.Patronimic, $"{GroupNames.Random()}-{NewValue.Int(15,18)}-{NewValue.Int(1,3)}")
            {
                AccessLevel = (byte)NewValue.Int(2)
            };

            All.Add(b);
            return(b);
        }
Exemple #3
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);
        }