public async Task GetBrandNamesAsyncShouldreturnFour() { brandRepository.Setup(r => r.All()).Returns(brandsAll.AsQueryable()); var service = new BrandService(brandRepository.Object); var result = await service.GetAllBrandsWithImageAsync(); var currentCount = result.Count; Assert.Equal(4, currentCount); brandRepository.Verify(x => x.All(), Times.Once); }