public async Task Get_Catalog_Types_Should_Return_HttpOk() { //Arrange _repository.Setup(x => x.GetCatalogTypesAsync()).Returns(Task.FromResult(new List <CatalogType>())); //Act var actionResult = await _controller.CatalogTypes() as ObjectResult; //Assert Assert.NotNull(actionResult); Assert.Equal(actionResult.StatusCode, (int)HttpStatusCode.OK); }