Esempio n. 1
0
        public async void CanGetBand()
        {
            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);
                    Band band    = await service.GetBandAsync(1);

                    Assert.Equal("Sabaton", band.Name);
                }
            }
        }