예제 #1
0
        public void CanMapToSkillSuggestionModel()
        {
            string testQuery = "C";
            List<string> hints = new List<string>();
            var skillSuggestionModelExpected = new SkillSuggestionModel()
            {
                query = testQuery,
                suggestions = hints,
            };

            var skillSuggestionModel = mappingService.MapToSkillSugestionModel(testQuery, hints);

            skillSuggestionModel.ShouldBeEquivalentTo(skillSuggestionModelExpected);
        }
예제 #2
0
 public SkillSuggestionModel MapToSkillSugestionModel(string query, List<string> hints)
 {
     var skillSuggestionModel = new SkillSuggestionModel(query, hints);
     return skillSuggestionModel;
 }