public void SaveFeedsDataTest() { FeedInfo info = new FeedInfo(); info.Sort = 1; List <FeedInfo> list = new List <FeedInfo>(); list.Add(info); RSSHandle.SaveFeedToXml(AppDomain.CurrentDomain.BaseDirectory, list); }
public void SavsReadingInfo() { FeedInfo info = new FeedInfo(); info.Sort = 1; info.FeedUrl = "http://www.shisujie.com/rss?containerid=31"; ReadInfo reading = new ReadInfo(); reading.Id = "http://www.baidu.com"; List <ReadInfo> readinglist = new List <ReadInfo>(); readinglist.Add(reading); RSSHandle.SaveReadsInfo(AppDomain.CurrentDomain.BaseDirectory, info, readinglist); List <FeedInfo> list = new List <FeedInfo>(); list.Add(info); RSSHandle.SaveFeedToXml(AppDomain.CurrentDomain.BaseDirectory, list); }