public async void AddAsync_AddsToConext() { var venue = VenueGenerator.Create(); using (var context = new booking_facilitiesContext(contextOptions)) { context.Database.EnsureCreated(); var repository = new VenueRepository(context); await repository.AddAsync(venue); Assert.Equal(1, await context.Venue.CountAsync()); Assert.Equal(venue, await context.Venue.SingleAsync()); } }