public void PostSkillType() { // Arrange SkillTypeController controller = new SkillTypeController(); SkillType SkillTypeObj = new SkillType { Name = "EBS" }; var actResult = controller.Post(SkillTypeObj); // Act var result = actResult as OkNegotiatedContentResult <SkillType>; // Assert Assert.IsNotNull(result); Assert.IsTrue(result.Content.ID > 0); }