public async void CanGetBands() { 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); List <Band> bands = (await service.GetBandsAsync()).ToList(); Assert.Equal(7, bands.Count); Assert.Equal("Sabaton", bands[0].Name); Assert.Equal("Beast in Black", bands[1].Name); Assert.Equal("Hammerfall", bands[2].Name); Assert.Equal("Powerwolf", bands[3].Name); Assert.Equal("Nightwish", bands[4].Name); Assert.Equal("Depresszió", bands[5].Name); Assert.Equal("UnitTest", bands[6].Name); } } }