public async Task GetTownsByCategoryNameAsyncShouldReturnZero() { var townRepo = new Repository <Town>(db); var useFullCategory = new Repository <UseFullCategory>(db); var companyRepo = new Repository <Company>(db); var townUseFullCategoriesRepo = new Repository <TownUseFullCategory>(db); var useFullCategoryService = new UseFullCategoryService(useFullCategory, townRepo, townUseFullCategoriesRepo, companyRepo); var townService = new TownService(townRepo, townUseFullCategoriesRepo, useFullCategoryService, companyRepo); await townService.CreateTownByNameAsync("Test"); var allTowns = await townService.GetTownsByCategoryNameAsync("Test Category"); var expected = 0; var actual = allTowns.TownNames.Count; Assert.Equal(expected, actual); }