public void CreateShouldReturnOkResultWithId() { this.categoriesController.Configuration = new HttpConfiguration(); var model = TestObjectFactoryDataTransferModels.GetValidCategoryRequesModel(); this.categoriesController.Validate(model); var result = this.categoriesController.Create(model); var okResult = result as OkNegotiatedContentResult <int>; Assert.IsNotNull(okResult); Assert.AreEqual(Constants.ENTITY_VALID_ID, okResult.Content); }