public ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus)
 {
     _profile     = profile;
     _accountName = accountName;
     _bus         = bus;
     _storage     = _profile.Get <ITargetProcessMessage>();
 }
		public ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus)
		{
			_profile = profile;
			_accountName = accountName;
			_bus = bus;
			_storage = _profile.Get<ITargetProcessMessage>();
		}
 public AutomaticSearcherListener(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IActivityLogger logger)
 {
     _pluginContext         = pluginContext;
     _profile               = profile;
     _documentIndexProvider = documentIndexProvider;
     _logger = logger;
 }
 public DocumentIndexMemoryWatcher(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, DocumentIndexSetup documentIndexSetup, IActivityLogger logger)
 {
     _pluginContext         = pluginContext;
     _profile               = profile;
     _documentIndexProvider = documentIndexProvider;
     _documentIndexSetup    = documentIndexSetup;
     _logger = logger;
 }
        public ContextQueryPlanBuilder(IDocumentIndexProvider documentIndexProvider, IDocumentIdFactory documentIdFactory, AccountName accountName, IProfileReadonly profile, IEntityTypeProvider entityTypeProvider)
		{
			_documentIndexProvider = documentIndexProvider;
			_documentIdFactory = documentIdFactory;
            _accountName = accountName;
			_profile = profile;
			_entityTypeProvider = entityTypeProvider;
		}
 public DocumentIndexOptimizer(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, DocumentIndexSetup documentIndexSetup, DocumentIndexPeriodicOptimizeHintFactory optimizeHintFactory, IActivityLogger logger)
 {
     _pluginContext         = pluginContext;
     _profile               = profile;
     _documentIndexProvider = documentIndexProvider;
     _optimizeHint          = optimizeHintFactory.Create(documentIndexSetup);
     _logger = logger;
 }
Exemple #7
0
 public ContextQueryPlanBuilder(IDocumentIndexProvider documentIndexProvider, IDocumentIdFactory documentIdFactory, AccountName accountName, IProfileReadonly profile, IEntityTypeProvider entityTypeProvider)
 {
     _documentIndexProvider = documentIndexProvider;
     _documentIdFactory     = documentIdFactory;
     _accountName           = accountName;
     _profile            = profile;
     _entityTypeProvider = entityTypeProvider;
 }
		public ContextQueryPlanBuilder(IDocumentIndexProvider documentIndexProvider, IIndexDataFactory indexDataFactory, IPluginContext pluginContext, IProfileReadonly profile, IEntityTypeProvider entityTypeProvider, IEnumerable<IContextQueryPlanBuilder> planBuilders)
		{
			_documentIndexProvider = documentIndexProvider;
			_indexDataFactory = indexDataFactory;
			_pluginContext = pluginContext;
			_profile = profile;
			_entityTypeProvider = entityTypeProvider;
			_planBuilders = planBuilders;
		}
 public SearcherPluginUpdatedProfileInitializationSaga(IEntityTypeProvider entityTypeProvider, IPluginContext pluginContext, ISagaPersister sagaPersister, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IActivityLogger log)
 {
     _entityTypeProvider    = entityTypeProvider;
     _pluginContext         = pluginContext;
     _sagaPersister         = sagaPersister;
     _profile               = profile;
     _documentIndexProvider = documentIndexProvider;
     _log = log;
 }
 public ContextQueryPlanBuilder(IDocumentIndexProvider documentIndexProvider, IIndexDataFactory indexDataFactory, IPluginContext pluginContext, IProfileReadonly profile, IEntityTypeProvider entityTypeProvider, IEnumerable <IContextQueryPlanBuilder> planBuilders)
 {
     _documentIndexProvider = documentIndexProvider;
     _indexDataFactory      = indexDataFactory;
     _pluginContext         = pluginContext;
     _profile            = profile;
     _entityTypeProvider = entityTypeProvider;
     _planBuilders       = planBuilders;
 }
		public QueryPlanBuilder(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IEntityTypeProvider entityTypeProvider, IDocumentIdFactory documentIdFactory)
		{
			_accountName = pluginContext.AccountName;
			_profile = profile;
			_documentIndexProvider = documentIndexProvider;
			_entityTypeProvider = entityTypeProvider;
			_documentIdFactory = documentIdFactory;
			_contextQueryPlanBuilder = new ContextQueryPlanBuilder(_documentIndexProvider, _documentIdFactory, pluginContext.AccountName, _profile, _entityTypeProvider);
		}
 public QueryPlanBuilder(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IEntityTypeProvider entityTypeProvider, IIndexDataFactory indexDataFactory, ContextQueryPlanBuilder contextQueryPlanBuilder)
 {
     _pluginContext           = pluginContext;
     _profile                 = profile;
     _documentIndexProvider   = documentIndexProvider;
     _entityTypeProvider      = entityTypeProvider;
     _indexDataFactory        = indexDataFactory;
     _contextQueryPlanBuilder = contextQueryPlanBuilder;
 }
 public QueryPlanBuilder(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IEntityTypeProvider entityTypeProvider, IIndexDataFactory indexDataFactory, ContextQueryPlanBuilder contextQueryPlanBuilder)
 {
     _pluginContext = pluginContext;
     _profile = profile;
     _documentIndexProvider = documentIndexProvider;
     _entityTypeProvider = entityTypeProvider;
     _indexDataFactory = indexDataFactory;
     _contextQueryPlanBuilder = contextQueryPlanBuilder;
 }
 public QueryPlanBuilder(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IEntityTypeProvider entityTypeProvider, IDocumentIdFactory documentIdFactory)
 {
     _accountName             = pluginContext.AccountName;
     _profile                 = profile;
     _documentIndexProvider   = documentIndexProvider;
     _entityTypeProvider      = entityTypeProvider;
     _documentIdFactory       = documentIdFactory;
     _contextQueryPlanBuilder = new ContextQueryPlanBuilder(_documentIndexProvider, _documentIdFactory, pluginContext.AccountName, _profile, _entityTypeProvider);
 }
        private void HandleMessageFromQueue(IMessage[] messages, IProfileReadonly profile, string queueName)
        {
            var headers = new List <HeaderInfo> {
                new HeaderInfo {
                    Key = BusExtensions.PROFILENAME_KEY, Value = profile.Name.Value
                }
            };

            HandleMessageFromQueue(messages, headers, queueName);
        }
Exemple #16
0
 public EntityIndexer(DocumentFactory documentFactory, ILocalBus localBus, IProfileReadonly profile, IPluginContext pluginContext, IDocumentIdFactory documentIdFactory, IDocumentIndexProvider documentIndexProvider, IEntityTypeProvider entityTypeProvider, IActivityLogger log)
 {
     _documentFactory       = documentFactory;
     _localBus              = localBus;
     _profile               = profile;
     _pluginContext         = pluginContext;
     _documentIdFactory     = documentIdFactory;
     _documentIndexProvider = documentIndexProvider;
     _entityTypeProvider    = entityTypeProvider;
     _log            = log;
     _textOperations = new TextOperations();
 }
        private static void UpdateProfile(TransportMock transportMock, IProfileReadonly profile)
        {
            var addOrUpdateProfileCmd = new ExecutePluginCommandCommand
            {
                CommandName = EmbeddedPluginCommands.AddOrUpdateProfile,
                Arguments   = profile.ConvertToDto().Serialize()
            };

            transportMock.HandleMessageFromTp(
                new List <HeaderInfo> {
                new HeaderInfo {
                    Key = BusExtensions.ACCOUNTNAME_KEY, Value = AccountName.Empty.Value
                }
            },
                addOrUpdateProfileCmd);
        }
		public void Init()
		{
			_transport = TransportMock.CreateWithoutStructureMapClear(typeof (CreateTasksForNewUserStoryHandler).Assembly);

			const int projectId = 123;
			const int userStoryId = 123;
			_profileInstance = _transport.AddProfile("Profile1",
			                                         new TaskCreatorProfile
			                                         	{Project = projectId, TasksList = "Task", CommandName = "{CT}"});

			_userStoryCreatedMessage = new UserStoryCreatedMessage
			                           	{
			                           		Dto =
			                           			new UserStoryDTO
			                           				{
			                           					ProjectID = projectId,
			                           					UserStoryID = userStoryId,
			                           					Name = "{CT}User Story Name"
			                           				}
			                           	};
		}
        public void Init()
        {
            _transport = TransportMock.CreateWithoutStructureMapClear(typeof(CreateTasksForNewUserStoryHandler).Assembly);

            const int projectId   = 123;
            const int userStoryId = 123;

            _profileInstance = _transport.AddProfile("Profile1",
                                                     new TaskCreatorProfile
            {
                Project = projectId, TasksList = "Task", CommandName = "{CT}"
            });

            _userStoryCreatedMessage = new UserStoryCreatedMessage
            {
                Dto =
                    new UserStoryDTO
                {
                    ProjectID   = projectId,
                    UserStoryID = userStoryId,
                    Name        = "{CT}User Story Name"
                }
            };
        }
Exemple #20
0
 public static PluginProfile ConvertToPluginProfile(this IProfileReadonly profile)
 {
     return(new PluginProfile(profile.Name));
 }
Exemple #21
0
 public CreateTestPlanRunSaga(IProfileReadonly profile, ITestCaseResolverFactory resolverFactory)
 {
     _resolverFactory = resolverFactory;
     _profile         = profile;
 }
 public SearcherPluginProfileInitializationSaga(IEntityTypeProvider entityTypeProvider, IProfileReadonly profileReadonly, IActivityLogger log)
 {
     _entityTypeProvider = entityTypeProvider;
     _profileReadonly    = profileReadonly;
     _log = log;
 }
Exemple #23
0
 public static PluginProfileDto ConvertToDto(this IProfileReadonly profile)
 {
     return(new PluginProfileDto {
         Name = profile.Name.Value, Settings = profile.Settings
     });
 }
 public SearcherPluginUpdatedProfileInitializationSaga(IProfileReadonly profile, IActivityLogger log, SagaServices sagaServices)
 {
     _profile      = profile;
     _log          = log;
     _sagaServices = sagaServices;
 }
Exemple #25
0
 public SearcherPluginProfileInitializationSaga(IProfileReadonly profileReadonly, IActivityLogger log)
 {
     _profileReadonly = profileReadonly;
     _log             = log;
 }
 public void HandleLocalMessage(IProfileReadonly profile, params IMessage[] messages)
 {
     HandleMessageFromQueue(messages, profile, Address);
 }
 public void ReceiveProfileAddedMessage()
 {
     _profile = _transport.AddProfile("Profile_1");
 }
		public void AddProfile(string profileName, TestRunImportPluginProfile settings)
		{
			CurrentProfile = Transport.AddProfile(profileName, settings);
		}
		public ProfileChanged(IProfileReadonly profile, AccountName accountName)
		{
			_profile = profile;
			_accountName = accountName;
		}
Exemple #30
0
 public void SetProfile(IProfileReadonly profile)
 {
     ObjectFactory.GetInstance <BugzillaServiceMock>().InnerProfile = profile;
 }
		public IProfileGateway Create(AccountName accountName, IProfileReadonly profile)
		{
			return new ProfileGateway(profile, accountName, _tpBus);
		}
 public IProfileGateway Create(AccountName accountName, IProfileReadonly profile)
 {
     return(new ProfileGateway(profile, accountName, _tpBus));
 }
		public void SetProfile(IProfileReadonly profile)
		{
			Context.SetProfile(profile);
		}
 public void HandleMessageFromTp(IProfileReadonly profile, params IMessage[] messages)
 {
     HandleMessageFromQueue(messages, profile, TP_INPUT_COMMAND_QUEUE_NAME);
 }
Exemple #35
0
 public void SetProfile(IProfileReadonly profile)
 {
     Context.SetProfile(profile);
 }
Exemple #36
0
        private bool IsTimeToSyncronize(IProfileReadonly profile, LastSyncDate lastSyncDate)
        {
            var syncronizableProfile = profile.Settings as ISynchronizableProfile;

            return(IsFirstSynchronization(lastSyncDate) || CurrentDate.Value.Subtract(lastSyncDate.Value).TotalMinutes >= syncronizableProfile.SynchronizationInterval);
        }
 public ProfileChanged(IProfileReadonly profile, AccountName accountName)
 {
     _profile     = profile;
     _accountName = accountName;
 }
 public void AddProfile(string profileName, TestRunImportPluginProfile settings)
 {
     CurrentProfile = Transport.AddProfile(profileName, settings);
 }