public async Task Get_Catalog_Brands_Should_Return_HttpOk() { //Arrange var item = new CatalogItem { AvailableStock = 1, Name = "name" }; _repository.Setup(x => x.GetCatalogBrandsAsync()).Returns(Task.FromResult(new List <CatalogBrand>())); //Act var actionResult = await _controller.CatalogBrands() as ObjectResult; //Assert Assert.NotNull(actionResult); Assert.Equal(actionResult.StatusCode, (int)HttpStatusCode.OK); }