public void normal_keyword_list_should_be_converted_to_keywordview_list() { var source = new Keyword().FromDefault(); var sourceList = new List<Keyword> { source }; var destList = EntityMapping.Auto<IList<Keyword>, IList<KeywordView>>(sourceList); Assert.NotEmpty(destList); destList[0].AssertPropertyValues(source); }
protected Keyword convertKeywordNameNoPrefix(Keyword keyword) { var result = keyword; result.Name = keyword.Name.Substring(5); return result; }