Пример #1
0
        public SyndicationItem Get(int id)
        {
            SyndicationItem item = SyndicationItemFactory.CreateExampleItemWithId(id);

            item.Links.Add(SyndicationItemFactory.GetLink(id));
            return(item);
        }
Пример #2
0
 public SyndicationFeed Get()
 {
     return(new SyndicationFeed(new List <SyndicationItem>
     {
         SyndicationItemFactory.CreateExampleItemWithId(1),
         SyndicationItemFactory.CreateExampleItemWithId(2),
         SyndicationItemFactory.CreateExampleItemWithId(3),
     }));
 }