PageRenderTime 284ms CodeModel.GetById 149ms app.highlight 1ms RepoModel.GetById 132ms app.codeStats 0ms

/Rhino.Etl.Tests/UsingDAL/MySimpleDal.cs

http://github.com/ayende/rhino-etl
C# | 23 lines | 20 code | 3 blank | 0 comment | 0 complexity | 44d7a9ad88e5d88ede72ef8334834a97 MD5 | raw file
 1namespace Rhino.Etl.Tests.UsingDAL
 2{
 3    using System.Collections.Generic;
 4
 5    public class MySimpleDal
 6    {
 7        public static List<User> Users = new List<User>();
 8
 9        public static void Save(User user)
10        {
11            Users.Add(user);
12        }
13
14        public static IEnumerable<User> GetUsers()
15        {
16            yield return new User(1, "ayende", "ayende@example.org");
17            yield return new User(2, "foo", "foo@example.org");
18            yield return new User(3, "bar", "bar@example.org");
19            yield return new User(4, "brak", "brak@example.org");
20            yield return new User(5, "snar", "snar@example.org");
21        }
22    }
23}