public StaffRepositoryTests() { _testDbContext = new YoumaconTestDbContext(); _staffMembers = new List <StaffReader>(50); _staffMembers = GenerateStaffMembers(); }
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); }