Beispiel #1
0
        public void ExceptionTestFor_SkillNameAlreadyExist()
        {
            Skills skills = new Skills()
            {
                SkillName = "CSS"
            };
            //Assert
            var ex = Assert.Throws <SkillAlreadyExistException>(() => _AssociateServices.AddSkills(skills));

            Assert.Equal("Skill Already Exist ", ex.Messages);
        }
Beispiel #2
0
        public void Test_for_AddSkills()
        {
            Skills skills = new Skills()
            {
                SkillId   = 1,
                SkillName = "ss"
            };


            var Result    = _AssociateServices.AddSkills(skills);
            var GetSkills = Result.ToString();

            Assert.NotNull(GetSkills);
        }