public async Task GetProductBrandAsync_ShouldReturnAListOfProductBrand() { // Arrange var sut = new BrandsController(_brandRepo); // Act var productBrand = await sut.GetProductBrand(); // Assert var actionResult = Assert.IsType <ActionResult <IReadOnlyList <ProductBrand> > >(productBrand); var productBrandList = Assert.IsAssignableFrom <IReadOnlyList <ProductBrand> >(((OkObjectResult)actionResult.Result).Value); Assert.Equal(_fixture.SeedEntries, productBrandList.Count); }