public WebpageUrlGeneratorTests()
 {
     _urlValidationService = A.Fake<IUrlValidationService>();
     A.CallTo(() => _urlValidationService.UrlIsValidForWebpage(A<string>.Ignored, A<int?>.Ignored)).Returns(true);
     _pageDefaultsSettings = new PageDefaultsSettings();
     _webpageUrlService = new WebpageUrlService(_urlValidationService, Session, Kernel, _pageDefaultsSettings);
 }
Exemple #2
0
 public WebpageUrlService(IUrlValidationService urlValidationService, ISession session, IKernel kernel,
     PageDefaultsSettings settings)
 {
     _urlValidationService = urlValidationService;
     _session = session;
     _kernel = kernel;
     _settings = settings;
 }
Exemple #3
0
 public GetCurrentLayout(ISession session, SiteSettings siteSettings,PageDefaultsSettings pageDefaultsSettings)
 {
     _session = session;
     _siteSettings = siteSettings;
     _pageDefaultsSettings = pageDefaultsSettings;
 }