Ejemplo n.º 1
0
 private static bool AreDirectlyRelated(IRecommend programmerA, IRecommend programmerB)
 {
     return(programmerA
            .GetRecommendations()
            .Contains(programmerB.GetId()) ||
            programmerB
            .GetRecommendations()
            .Contains(programmerA.GetId()));
 }
 private static int RecommendationCount(IRecommend programmer)
 {
     return(programmer.GetRecommendations().Count());
 }