public void DoesVenueExist_ChecksByName() { var venue = VenueGenerator.Create(); venue.VenueName = "King's College"; using (var context = new booking_facilitiesContext(contextOptions)) { context.Database.EnsureCreated(); context.Venue.Add(venue); context.SaveChanges(); var repository = new VenueRepository(context); Assert.True(repository.DoesVenueExist("King's College")); Assert.False(repository.DoesVenueExist("Queens's College")); } }