Example #1
0
 public void SetUp()
 {
     ServiceLocatorInitializer.Init();
     controller = new SoulsController(CreateMockSoulRepository(),null, null, null);
 }
Example #2
0
 public IList<Post> GetPostsForChannel(Channel c, int Page)
 {
     SoulsController sc = new SoulsController(SoulRepository, PostRepository, null, null);
     List<Post> p = new List<Post>();
     foreach (var u in c.users)
     {
         p.AddRange(sc.GetPostsForSoul(u.Id, Page, 10));
     }
     return p.OrderBy(x => x.lastedit).Reverse().ToList();
 }