Exemplo n.º 1
0
 public void testInit()
 {
     count = new Count(new EntityCounting());
     _news.Add(new News(1, "test,", "#111", 0));
     _news.ElementAt(0).Departments.Add(new News(2, "test,", "#111", 1));
     _news.ElementAt(0).Departments.Add(new News(3, "test,", "#111", 1));
     _news.ElementAt(0).Departments.ElementAt(1).Departments.Add(new News(4, "test,", "#111", 3));
 }
Exemplo n.º 2
0
 public Count(ICounting reader) : base()
 {
     this.reader = reader;
 }
Exemplo n.º 3
0
 public Group(List <News> news, ICounting count)
 {
     _news             = news;
     countingDecorator = count;
 }