Exemple #1
0
        public async Task GetAllThemes_ReturnsAll()
        {
            var countItemsImDataBase = await _context.Themes.CountAsync();

            _service.GetAllAsync().Result.Count.Should().Be(countItemsImDataBase);
        }
Exemple #2
0
 public async Task <IActionResult> Index()
 {
     return(View(await _themeService.GetAllAsync()));
 }