/Rhino.Etl.Tests/Joins/ComplexUsersToPeopleJoinProcess.cs

http://github.com/ayende/rhino-etl · C# · 33 lines · 29 code · 4 blank · 0 comment · 0 complexity · c42286ca59774492dfdb6013212c1a74 MD5 · raw file

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