PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

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