Beispiel #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();
        }
        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[]);
 }
Beispiel #4
0
 public IEnumerable <SkillDto> GetSkills([FromQuery(Name = "q")] string q)
 {
     return(_skillsService.GetSkills(q));
 }
Beispiel #5
0
        // GET: EditSkills
        public ActionResult Index()
        {
            List <CategoryViewModel> skills = Mapper.MapUnvalued(_skillsService.GetSkills());

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

            return(Ok(skills));
        }