Пример #1
0
        private void SeedWithFakeData()
        {
            var existingCandidates = new List <Candidate>
            {
                new Candidate(1, PersonName.Create("Joe", "Biden"), null),
                new Candidate(2, PersonName.Create("Abraham", "Lincoln"), null),
                new Candidate(3, PersonName.Create("Richard", "Nixon"), null),
            };

            Candidates.AddRange(existingCandidates);
            SaveChanges();
        }