/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
- namespace Rhino.Etl.Tests.Joins
- {
- using System.Collections.Generic;
- using Core;
- using Xunit;
- public class BaseJoinFixture
- {
- protected List<Row> left;
- protected List<Row> right;
- public BaseJoinFixture()
- {
- left = new List<Row>();
- right = new List<Row>();
- AddUser("foo", "foo@example.org");
- AddUser("bar", "bar@example.org");
- AddPerson(3, "foo@example.org");
- AddPerson(5, "silver@exaple.org");
- }
- protected void AddPerson(int id, string email)
- {
- Row row = new Row();
- row["id"] = id;
- row["email"] = email;
- right.Add(row);
- }
- protected void AddUser(string name, string email)
- {
- Row row = new Row();
- row["name"] = name;
- row["email"] = email;
- left.Add(row);
- }
- }
- }