public async void CanUpdateBand() { 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.UpdateBandAsync(1, new Band { Name = "Teszt", Country = "Magyarország", FormedIn = 2020 }); } using (var context = new ConcertManagerContext(setup.ContextOptions)) { Assert.Equal(7, context.Bands.Count()); Assert.Equal("Teszt", context.Bands.Find(1).Name); } } }