PageRenderTime 444ms CodeModel.GetById 201ms app.highlight 2ms RepoModel.GetById 240ms app.codeStats 0ms

/Rhino.Etl.Tests/Joins/TrivialUsersToPeopleJoinProcess.cs

http://github.com/ayende/rhino-etl
C# | 29 lines | 25 code | 4 blank | 0 comment | 0 complexity | dc66473c9a2ecd52a37a1aa7d706467d MD5 | raw file
 1namespace Rhino.Etl.Tests.Joins
 2{
 3    using System.Collections.Generic;
 4    using Core;
 5    using Rhino.Etl.Core.Operations;
 6
 7    public class TrivialUsersToPeopleJoinProcess : EtlProcess
 8    {
 9        private readonly IEnumerable<Row> left;
10        private readonly IEnumerable<Row> right;
11
12        public List<Row> Results = new List<Row>();
13
14        public TrivialUsersToPeopleJoinProcess(IEnumerable<Row> left, IEnumerable<Row> right)
15        {
16            this.left = left;
17            this.right = right;
18        }
19
20        protected override void Initialize()
21        {
22            Register(new InnerJoinUsersToPeopleByEmail()
23                         .Left(new GenericEnumerableOperation(left))
24                         .Right(new GenericEnumerableOperation(right))
25                );
26            Register(new AddToResults(this.Results));
27        }
28    }
29}