예제 #1
0
        public void Create_Post()

        {
            var controller = new CandidatesController();


            Candidate          candidate = GetCandidate(9, "roger", "test");
            CandidateViewModel cvm       = new CandidateViewModel();

            cvm.SelectedAllSkills = getSkill();
            cvm.Candidate         = candidate;
            controller.Create(cvm);

            IEnumerable <Candidate> candidates = getAllCandidate();

            Assert.IsTrue(candidates.Contains(candidate));
        }