Esempio n. 1
0
        public async Task GetRegionsShouldReturnCollectionOfRegionsLolAppViewModel()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>()
                          .UseInMemoryDatabase("forumTest");
            var db = new ApplicationDbContext(options.Options);

            var service = new RegionsService(db);

            var result = await service.GetRegions();

            Assert.NotNull(result);
            Assert.IsType <RegionsLolAppViewModel>(result.First());
        }