Exemple #1
0
 public WebSiteTextTemplateEngine(Guid?verticalId, string mimeType, string text, MergeSettings settings, WebSite webSite, IWebSiteQuery webSiteQuery, ITinyUrlCommand tinyUrlCommand)
     : base(verticalId, mimeType, text, settings)
 {
     _webSite        = webSite;
     _webSiteQuery   = webSiteQuery;
     _tinyUrlCommand = tinyUrlCommand;
 }
Exemple #2
0
        public static void TestInitialize()
        {
            _webSiteQuery = Container.Current.Resolve <IWebSiteQuery>();
            Container.Current.Resolve <ITinyUrlQuery>();

            _rootPath = _webSiteQuery.GetUrl((int)WebSite.LinkMe, null, false, "~/").AbsoluteUri.ToLower();
            MockEmailTestExtensions.RootPath = _rootPath;
        }
Exemple #3
0
 public TinyUrlMappings(IWebSiteQuery webSiteQuery, Guid contextId, string definition, string mimeType, WebSite webSite, Guid?userId, Guid?verticalId)
 {
     _contextId    = contextId;
     _definition   = definition;
     _mimeType     = mimeType;
     _webSiteQuery = webSiteQuery;
     _webSite      = webSite;
     _userId       = userId;
     _verticalId   = verticalId;
 }
 public VerticalsController(IVerticalsCommand verticalsCommand, IVerticalsQuery verticalsQuery, ICommunitiesQuery communitiesQuery, IWebSiteQuery webSiteQuery, IMembersQuery membersQuery, ICandidatesQuery candidatesQuery, IResumesQuery resumesQuery, IMemberAccountsCommand memberAccountsCommand, IAccountVerificationsCommand accountVerificationsCommand)
 {
     _verticalsCommand            = verticalsCommand;
     _verticalsQuery              = verticalsQuery;
     _communitiesQuery            = communitiesQuery;
     _webSiteQuery                = webSiteQuery;
     _membersQuery                = membersQuery;
     _candidatesQuery             = candidatesQuery;
     _resumesQuery                = resumesQuery;
     _memberAccountsCommand       = memberAccountsCommand;
     _accountVerificationsCommand = accountVerificationsCommand;
 }
Exemple #5
0
        public static TinyUrlMapping Map(this TinyUrlMappingEntity entity, IWebSiteQuery webSiteQuery)
        {
            var webSite    = (WebSite)entity.webSite;
            var verticalId = entity.verticalId == Guid.Empty ? (Guid?)null : entity.verticalId;

            return(new TinyUrlMapping
            {
                CreatedTime = entity.createdTime,
                TinyId = entity.tinyId,
                WebSite = webSite,
                UserId = entity.userId,
                VerticalId = verticalId,
                LongUrl = webSiteQuery.GetUrl(webSite, verticalId, entity.secure, entity.longUrl),
                ContextId = entity.contextId,
                Definition = entity.definition,
                MimeType = entity.mimeType,
                Instance = entity.instance
            });
        }
 public WebSiteTemplateEngine(IContentEngine contentEngine, IWebSiteQuery webSiteQuery, ITinyUrlCommand tinyUrlCommand)
     : base(contentEngine)
 {
     _webSiteQuery   = webSiteQuery;
     _tinyUrlCommand = tinyUrlCommand;
 }
 public ApplicationsRepository(IDbConnectionFactory connectionFactory, IWebSiteQuery webSiteQuery)
 {
     _connectionFactory = connectionFactory;
     _webSiteQuery      = webSiteQuery;
 }
Exemple #8
0
        public JobAdPosterTask(IChannelManager <ISyndicate> channelManager, IHrCareersQuery hrCareersQuery, ILocationQuery locationQuery, IExecuteJobAdSearchCommand jobAdSearch, IIntegrationQuery integrationQuery, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand, IWebSiteQuery webSiteQuery, IJobAdsQuery jobAdsQuery)
            : base(Logger)
        {
            _serviceManager   = channelManager;
            _jobAdsQuery      = jobAdsQuery;
            _integrationQuery = integrationQuery;
            _jobAdIntegrationReportsCommand = jobAdIntegrationReportsCommand;

            _integratorUser = hrCareersQuery.GetIntegratorUser();
            _searcher       = new HrJobAdSearcher(jobAdSearch);
            _mapper         = new JobAdMapper(locationQuery, webSiteQuery);
        }
Exemple #9
0
 public JobAdMapper(ILocationQuery locationQuery, IWebSiteQuery webSiteQuery)
 {
     _locationMapper = new LocationMapper(locationQuery);
     _webSiteQuery   = webSiteQuery;
 }
Exemple #10
0
 public ManagementTemplateEngine(IWebSiteQuery webSiteQuery, int timeout)
 {
     _webSiteQuery = webSiteQuery;
     _timeout      = timeout;
 }