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