public LocationRepositoryTests() { _locations = new List <LocationReader>(50); _locations = GenerateLocations(); _testDbContext = new YoumaconTestDbContext(); _testDbContext.Locations.AddRange(_locations); _testDbContext.SaveChanges(); _locationRepository = new LocationRepository(_testDbContext); }
public ContactRepositoryTests() { _contacts = new List <ContactReader>(75); _contacts = GenerateContacts(); _testDbContext = new YoumaconTestDbContext(); _testDbContext.Contacts.AddRange(_contacts); _testDbContext.SaveChanges(); _testRepository = new ContactRepository(_testDbContext); }