/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

  1. namespace Rhino.Etl.Tests.Joins
  2. {
  3. using System.Collections.Generic;
  4. using Core;
  5. using Rhino.Etl.Core.Operations;
  6. public class TrivialUsersToPeopleJoinProcess : EtlProcess
  7. {
  8. private readonly IEnumerable<Row> left;
  9. private readonly IEnumerable<Row> right;
  10. public List<Row> Results = new List<Row>();
  11. public TrivialUsersToPeopleJoinProcess(IEnumerable<Row> left, IEnumerable<Row> right)
  12. {
  13. this.left = left;
  14. this.right = right;
  15. }
  16. protected override void Initialize()
  17. {
  18. Register(new InnerJoinUsersToPeopleByEmail()
  19. .Left(new GenericEnumerableOperation(left))
  20. .Right(new GenericEnumerableOperation(right))
  21. );
  22. Register(new AddToResults(this.Results));
  23. }
  24. }
  25. }