Beispiel #1
0
        public static IEnumerable <TOut> ResolveManyIn <TIn, TOut>(this ITransformationTrace trace, TransformationRuleBase <TIn, TOut> rule, IEnumerable <TIn> list)
            where TIn : class
            where TOut : class
        {
            if (trace == null)
            {
                throw new ArgumentNullException("trace");
            }
            if (list == null)
            {
                return(Enumerable.Empty <TOut>());
            }

            return(from ITraceEntry c in trace.TraceManyIn(rule, list.Select(input => new object[] { input }))
                   select c.Output as TOut);
        }
Beispiel #2
0
 public void Transformations_AbstractTrace_TraceManyIn_NoTransformationRule()
 {
     trace.TraceManyIn(null, Enumerable.Empty <object[]>());
 }