Example #1
0
        public void Strength_of_team_with_one_for_skill_index_and_degrees_of_separation_is_average_of_page_ranks(int averageRank)
        {
            _skillsService.GetSkillIndex(Arg.Any <string>(), Arg.Any <string>()).Returns(1);
            _separationService.GetDegreesBetween(Arg.Any <string>(), Arg.Any <string>()).Returns(1);
            _rankService.GetRank(Arg.Any <string>()).Returns(averageRank);
            _expectedStrength = averageRank;

            AssertTeamStrength();
        }
Example #2
0
 public double GetIndividualStrength(string skill, string individual)
 {
     return(_rankService.GetRank(individual) / _skillService.GetSkillIndex(individual, skill));
 }