public void VenueExists_ChecksById() { var venue = VenueGenerator.Create(); using (var context = new booking_facilitiesContext(contextOptions)) { context.Database.EnsureCreated(); context.Venue.Add(venue); context.SaveChanges(); var repository = new VenueRepository(context); Assert.True(repository.VenueExists(venue.VenueId)); Assert.False(repository.VenueExists(-1)); Console.WriteLine(venue.VenueId); } }