public async void CanDeleteBand() { using (var setup = new SQLiteInMemorySetup()) { using (var context = new ConcertManagerContext(setup.ContextOptions)) { context.Database.EnsureCreated(); } using (var context = new ConcertManagerContext(setup.ContextOptions)) { var service = new BandService(context); await service.DeleteBandAsync(7); } using (var context = new ConcertManagerContext(setup.ContextOptions)) { Assert.Equal(6, context.Bands.Count()); } } }