public HomeController(
     IOptions <AppConfiguration> appSettings, ISiteMapService siteMapService, IRSSFeedService rssFeedService)
 {
     _appSettings    = appSettings?.Value;
     _siteMapService = siteMapService;
     _rssFeedService = rssFeedService;
 }
示例#2
0
 public CatalogSiteMapCacheInvalidationHook(
     ISiteMapService siteMapService,
     IDbContext dbContext)
 {
     _siteMap   = siteMapService.GetSiteMap("catalog");
     _dbContext = dbContext;
 }
示例#3
0
 public HomeController(IPostService postService,
                       ISiteMapService siteMapService,
                       ICommunicationService communicationService)
 {
     _postService          = postService;
     _siteMapService       = siteMapService;
     _communicationService = communicationService;
 }
示例#4
0
 public CatalogSiteMapInvalidationConsumer(
     ISiteMapService siteMapService,
     ICommonServices services,
     CatalogSettings catalogSettings)
 {
     _siteMap         = siteMapService.GetSiteMap("catalog");
     _services        = services;
     _catalogSettings = catalogSettings;
 }
示例#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);
        }
示例#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>();
 }
示例#9
0
 public SiteMapController(ISiteMapService siteMapService)
 {
     _siteMapService = siteMapService;
 }
示例#10
0
 public SiteMapHostedService(ISiteMapService siteMapService, ILogger <SiteMapHostedService> logger)
 {
     SiteMapService = siteMapService;
     Logger         = logger;
 }
 public static void Initialize(ISiteMapService siteMapService)
 {
     _siteMapService = siteMapService;
 }
 public CanAllowOnlyAuthUsersHandler(IHttpContextAccessor httpContextAccessor, ISiteMapService SiteMapService)
 {
     _httpContextAccessor = httpContextAccessor;
     _SiteMapService      = SiteMapService;
 }
示例#13
0
 public SiteMapController(ISiteMapService siteMapService, IBlogService blogService)
 {
     _siteMapService = siteMapService;
     _blogService    = blogService;
 }
示例#14
0
 public SiteMapController(ISiteMapService siteMapService, ICommonService commonService)
 {
     _siteMapService = siteMapService;
     _commonService  = commonService;
 }