public void TestAssociate() { AssociateController ctrl = new AssociateController(); SkillController sCtrl = new SkillController(); AssosciateResult aRes = new AssosciateResult(); Skillresult sRes = new Skillresult(); SkillModel sm = GetTestDataSkill(); sRes = sCtrl.Post(sm); string message = sRes.status.Message; Assert.AreEqual("Skill added successfully", message); Assert.IsNotNull(sCtrl.GetAllSkils()); sm = sCtrl.GetSkillByName(sRes.skillModel); Assert.IsNotNull(sm); Status stat = sCtrl.DeleteSkill(sm); message = stat.Message; Assert.AreEqual("Skill deleted successfully", message); }