public Employee() { FirstName = Randomizer.Name; LastName = Randomizer.Name; Age = (uint) Randomizer.Rand.Next(120); Gender = (Randomizer.Rand.Next(0, 1) == 0) ? Gender.Male : Gender.Female; Passport = new Passport { Authority = Randomizer.Phrase, ExpirationDate = Randomizer.GetDate(DateTime.UtcNow, DateTime.UtcNow + TimeSpan.FromDays(1000)), Number = Randomizer.Id }; var curHistoryRecordCounter = Randomizer.Rand.Next(20); HistoryRecords = new HistoryRecord[curHistoryRecordCounter]; for (var i = 0; i < curHistoryRecordCounter; i++) HistoryRecords[i] = new HistoryRecord { Id = int.Parse(Randomizer.Id), CrimeCode = Randomizer.Name }; }
public Person(int numberOfPoliceRecords) { FirstName = Randomizer.Name; LastName = Randomizer.Name; Age = (uint) Randomizer.Rand.Next(120); Gender = (Randomizer.Rand.Next(0, 1) == 0) ? Gender.Male : Gender.Female; Passport = new Passport { Authority = Randomizer.Phrase, ExpirationDate = Randomizer.GetDate(DateTime.UtcNow, DateTime.UtcNow + TimeSpan.FromDays(1000)), Number = Randomizer.Id }; PoliceRecords = new PoliceRecord[numberOfPoliceRecords]; for (var i = 0; i < numberOfPoliceRecords; i++) PoliceRecords[i] = new PoliceRecord { Id = int.Parse(Randomizer.Id), CrimeCode = Randomizer.Name, Description = Randomizer.Phrase, }; }