Example #1
0
        public void Strength_of_team_with_member_that_does_not_know_chosen_skill_is_zero()
        {
            _skill = "skill";
            _skillsService.GetSkills("leader").Returns(new [] { "skill" });
            _skillsService.GetSkills("a").Returns(new[] { "NOT skill" });
            _skillsService.GetSkills("b").Returns(new[] { "skill" });
            _expectedStrength = 0;

            AssertTeamStrength();
        }
Example #2
0
        public async Task <IActionResult> SkillDetails(int SkillId)
        {
            try
            {
                var response = await _service.GetSkills(SkillId);

                if (response != null)
                {
                    return(Ok(response));
                }
                return(StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public string[] Skills(string programmer)
 {
     return(_skillsService.GetSkills(programmer) as string[]);
 }
Example #4
0
 public IEnumerable <SkillDto> GetSkills([FromQuery(Name = "q")] string q)
 {
     return(_skillsService.GetSkills(q));
 }
Example #5
0
        // GET: EditSkills
        public ActionResult Index()
        {
            List <CategoryViewModel> skills = Mapper.MapUnvalued(_skillsService.GetSkills());

            return(View(skills));
        }
Example #6
0
        public IActionResult GetSkillEntities()
        {
            var skills = _skillsService.GetSkills();

            return(Ok(skills));
        }