public async void AddAsync_AddAsyncToConext() { var booking = BookingGenerator.Create(); using (var context = new booking_facilitiesContext(contextOptions)) { context.Database.EnsureCreated(); var repository = new BookingRepository(context); await repository.AddAsync(booking); Assert.Equal(1, await context.Booking.CountAsync()); Assert.Equal(booking, await context.Booking.SingleAsync()); } }