public async void AddAsync_AddsToConext() { var facility = FacilityGenerator.Create(); using (var context = new booking_facilitiesContext(contextOptions)) { context.Database.EnsureCreated(); var repository = new FacilityRepository(context); await repository.AddAsync(facility); Assert.Equal(1, await context.Facility.CountAsync()); Assert.Equal(facility, await context.Facility.SingleAsync()); } }