Пример #1
0
        public SitemapLib(ILogger <SitemapLib> logger, IUrlRetriever urlRetriever,
                          ISerializedXmlSaver <Sitemap> serializedXmlSaver, IConfiguration configuration)
        {
            _logger             = logger;
            _urlRetriever       = urlRetriever;
            _serializedXmlSaver = serializedXmlSaver;
            _configuration      = configuration;

            _cloudinaryBaseUrl = _configuration.GetSection("FwlSettings:CloudinarySettings:BaseUrl").Value;
        }
 public void SetUp()
 {
     _sitemapIndexSerializerMock = Substitute.For <ISerializedXmlSaver <SitemapIndex> >();
     _sitemapIndexGenerator      = new SitemapIndexGenerator(_sitemapIndexSerializerMock);
 }
Пример #3
0
 internal SitemapGenerator(ISerializedXmlSaver <Sitemap> serializedXmlSaver)
 {
     _serializedXmlSaver = serializedXmlSaver;
 }
Пример #4
0
 public SitemapGenerator()
 {
     _serializedXmlSaver = new SerializedXmlSaver <Sitemap>(new FileSystemWrapper());
 }
 public void SetUp()
 {
     _sitemapSerializerMock = Substitute.For<ISerializedXmlSaver<Sitemap>>();
     _sitemapGenerator = new SitemapGenerator(_sitemapSerializerMock);
 }
 public void SetUp()
 {
     _sitemapSerializer = new SerializedXmlSaver <Sitemap>(new FileSystemWrapper());
     _sitemapGenerator  = new SitemapGenerator(_sitemapSerializer);
 }
 public void SetUp()
 {
     _fileSystemWrapper      = new TestFileSystemWrapper();
     _sitemapIndexSerializer = new SerializedXmlSaver <SitemapIndex>(_fileSystemWrapper);
     _sitemapIndexGenerator  = new SitemapIndexGenerator(_sitemapIndexSerializer);
 }
Пример #8
0
 public void SetUp()
 {
     _sitemapSerializer = new SerializedXmlSaver <List <Url> >(new TestFileSystemWrapper());
     _sitemapGenerator  = new SitemapGenerator(_sitemapSerializer);
 }
 public SitemapIndexGenerator(ISerializedXmlSaver <SitemapIndex> serializedXmlSaver)
 {
     _serializedXmlSaver = serializedXmlSaver;
 }
 public SitemapIndexGenerator()
 {
     _serializedXmlSaver = new SerializedXmlSaver<SitemapIndex>(new FileSystemWrapper());
 }
 internal SitemapIndexGenerator(ISerializedXmlSaver<SitemapIndex> serializedXmlSaver)
 {
     _serializedXmlSaver = serializedXmlSaver;
 }
Пример #12
0
 internal SitemapGenerator(ISerializedXmlSaver <List <Url> > serializedXmlSaver)
 {
     _serializedXmlSaver = serializedXmlSaver;
 }