/Rhino.Etl.Tests/Joins/BaseJoinFixture.cs

http://github.com/ayende/rhino-etl · C# · 40 lines · 34 code · 6 blank · 0 comment · 0 complexity · 52c11661e0a5a8751d8b76f5037726c9 MD5 · raw file

  1. namespace Rhino.Etl.Tests.Joins
  2. {
  3. using System.Collections.Generic;
  4. using Core;
  5. using Xunit;
  6. public class BaseJoinFixture
  7. {
  8. protected List<Row> left;
  9. protected List<Row> right;
  10. public BaseJoinFixture()
  11. {
  12. left = new List<Row>();
  13. right = new List<Row>();
  14. AddUser("foo", "foo@example.org");
  15. AddUser("bar", "bar@example.org");
  16. AddPerson(3, "foo@example.org");
  17. AddPerson(5, "silver@exaple.org");
  18. }
  19. protected void AddPerson(int id, string email)
  20. {
  21. Row row = new Row();
  22. row["id"] = id;
  23. row["email"] = email;
  24. right.Add(row);
  25. }
  26. protected void AddUser(string name, string email)
  27. {
  28. Row row = new Row();
  29. row["name"] = name;
  30. row["email"] = email;
  31. left.Add(row);
  32. }
  33. }
  34. }