Ejemplo n.º 1
0
 public HomeController(
     IOptions <AppConfiguration> appSettings, ISiteMapService siteMapService, IRSSFeedService rssFeedService)
 {
     _appSettings    = appSettings?.Value;
     _siteMapService = siteMapService;
     _rssFeedService = rssFeedService;
 }
Ejemplo n.º 2
0
 public CatalogSiteMapCacheInvalidationHook(
     ISiteMapService siteMapService,
     IDbContext dbContext)
 {
     _siteMap   = siteMapService.GetSiteMap("catalog");
     _dbContext = dbContext;
 }
Ejemplo n.º 3
0
 public HomeController(IPostService postService,
                       ISiteMapService siteMapService,
                       ICommunicationService communicationService)
 {
     _postService          = postService;
     _siteMapService       = siteMapService;
     _communicationService = communicationService;
 }
Ejemplo n.º 4
0
 public CatalogSiteMapInvalidationConsumer(
     ISiteMapService siteMapService,
     ICommonServices services,
     CatalogSettings catalogSettings)
 {
     _siteMap         = siteMapService.GetSiteMap("catalog");
     _services        = services;
     _catalogSettings = catalogSettings;
 }
Ejemplo n.º 5
0
        public void SetUp()
        {
            _siteMapService    = A.Fake <ISiteMapService>();
            _unitOfWork        = A.Fake <IUnitOfWork>();
            _requestRepository = A.Fake <IRepository <RequestBenchmarkEntry> >();
            _mapper            = A.Fake <IMapper>();

            A.CallTo(() => _unitOfWork.GetRepository <RequestBenchmarkEntry>()).Returns(_requestRepository);

            _websiteSpeedStatisticService = new WebsiteSpeedStatisticService(_siteMapService, _unitOfWork, _mapper);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Конструктор
        /// </summary>
        public SiteMapController(
            ISiteMapService siteMapService, ISiteMapModifyService siteMapModifyService,
            IOptions <EnvironmentConfiguration> options, IWebAppQpHelper webAppQpHelper, IMapper mapper, ILogger <SiteMapController> logger)
        {
            _siteMapService       = siteMapService;
            _siteMapModifyService = siteMapModifyService;
            _mapper = mapper;
            _logger = logger;

            _siteId = webAppQpHelper.SiteId;
            _userId = webAppQpHelper.UserId;
            _step   = options.Value.IndexOrderStep;
            _useHierarchyRegionFilter = options.Value?.UseHierarchyRegionFilter ?? false;
        }
        public void TestInitialize()
        {
            mockRepository = new MockRepository(MockBehavior.Strict);
            fixture        = new Fixture();

            actionResultFactory = mockRepository.Create <IActionResultFactory>();
            baseUrlProvider     = mockRepository.Create <IBaseUrlProvider>();
            namespaceProvider   = mockRepository.Create <IXmlNamespaceProvider>();

            siteMapService = new SiteMapService(actionResultFactory.Object, baseUrlProvider.Object, namespaceProvider.Object);

            httpContext = mockRepository.Create <HttpContextBase>();
            siteMapConfigurationModel = mockRepository.Create <ISiteMapConfigurationModel>();

            expectedResult = new EmptyResult();

            baseUrl = "http://example.org";
        }
 public WebsiteSpeedStatisticService(ISiteMapService siteMapService, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _siteMapService             = siteMapService;
     _mapper                     = mapper;
     _requestBenchmarkRepository = unitOfWork.GetRepository <RequestBenchmarkEntry>();
 }
Ejemplo n.º 9
0
 public SiteMapController(ISiteMapService siteMapService)
 {
     _siteMapService = siteMapService;
 }
Ejemplo n.º 10
0
 public SiteMapHostedService(ISiteMapService siteMapService, ILogger <SiteMapHostedService> logger)
 {
     SiteMapService = siteMapService;
     Logger         = logger;
 }
Ejemplo n.º 11
0
 public static void Initialize(ISiteMapService siteMapService)
 {
     _siteMapService = siteMapService;
 }
Ejemplo n.º 12
0
 public CanAllowOnlyAuthUsersHandler(IHttpContextAccessor httpContextAccessor, ISiteMapService SiteMapService)
 {
     _httpContextAccessor = httpContextAccessor;
     _SiteMapService      = SiteMapService;
 }
Ejemplo n.º 13
0
 public SiteMapController(ISiteMapService siteMapService, IBlogService blogService)
 {
     _siteMapService = siteMapService;
     _blogService    = blogService;
 }
Ejemplo n.º 14
0
 public SiteMapController(ISiteMapService siteMapService, ICommonService commonService)
 {
     _siteMapService = siteMapService;
     _commonService  = commonService;
 }