public AtomSyndicationFormatter(string format,
     ISettingsService settingsService,
     ISyndication syndication)
     : base(format, settingsService, syndication)
 {
     SupportedMediaTypes.Add(new MediaTypeHeaderValue(Atom));
     this.AddQueryStringMapping("formatter", "atom", new MediaTypeHeaderValue(format));
 }
 public void Setup()
 {
     _syndication = MockRepository.GenerateStub<ISyndication>();
     _settingsService = MockRepository.GenerateStub<ISettingsService>();
     _settingsService.Stub(x => x.GetSettings()).Return(new SettingsViewModel
     {
         BlogPageUrl = "http://localhost/mypage",
         Name = "My blog"
     });
 }
Exemplo n.º 3
0
 public AtomFeedHandler(ISyndication syndication)
 {
     this._syndication = syndication;
 }
Exemplo n.º 4
0
 public SitemapHandler(ISyndication syndication)
 {
     this._syndication = syndication;
 }
Exemplo n.º 5
0
 public ModuleSitemapHandler(ISyndication syn)
 {
     this._syndication = syn;
 }