Beispiel #1
0
        public void AddSkillTest()
        {
            SkillSet skill = new SkillSet {
                Skillname = "UnitTest Skill"
            };
            SkillsController  skillcontroller = new SkillsController();
            IHttpActionResult response        = skillcontroller.AddSkills(skill);
            var contentResult = response as OkNegotiatedContentResult <string>;

            Assert.IsNotNull(contentResult);
            Assert.IsNotNull(contentResult.Content);
            Assert.AreEqual(contentResult.Content.ToString(), "Success");
        }