public HomeController( IOptions <AppConfiguration> appSettings, ISiteMapService siteMapService, IRSSFeedService rssFeedService) { _appSettings = appSettings?.Value; _siteMapService = siteMapService; _rssFeedService = rssFeedService; }
public CatalogSiteMapCacheInvalidationHook( ISiteMapService siteMapService, IDbContext dbContext) { _siteMap = siteMapService.GetSiteMap("catalog"); _dbContext = dbContext; }
public HomeController(IPostService postService, ISiteMapService siteMapService, ICommunicationService communicationService) { _postService = postService; _siteMapService = siteMapService; _communicationService = communicationService; }
public CatalogSiteMapInvalidationConsumer( ISiteMapService siteMapService, ICommonServices services, CatalogSettings catalogSettings) { _siteMap = siteMapService.GetSiteMap("catalog"); _services = services; _catalogSettings = catalogSettings; }
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); }
/// <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>(); }
public SiteMapController(ISiteMapService siteMapService) { _siteMapService = siteMapService; }
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; }
public SiteMapController(ISiteMapService siteMapService, IBlogService blogService) { _siteMapService = siteMapService; _blogService = blogService; }
public SiteMapController(ISiteMapService siteMapService, ICommonService commonService) { _siteMapService = siteMapService; _commonService = commonService; }