Ejemplo n.º 1
0
        private static SourceWithCollections CreateSource()
        {
            var result = new SourceWithCollections();

            for (int i = 0; i < CollectionLength; i++)
            {
                result.StringList.Add(Guid.NewGuid().ToString());
                result.ItemList.Add(CreateItem());
            }
            return(result);
        }
Ejemplo n.º 2
0
 private static TargetWithCollections HandwrittenMap(SourceWithCollections source, TargetWithCollections target)
 {
     target.StringList.AddRange(source.StringList);
     source.ItemList.ForEach(x => target.ItemList.Add(HandwrittenMap(x, new Item())));
     return(target);
 }