コード例 #1
0
 public ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus)
 {
     _profile     = profile;
     _accountName = accountName;
     _bus         = bus;
     _storage     = _profile.Get <ITargetProcessMessage>();
 }
コード例 #2
0
		public ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus)
		{
			_profile = profile;
			_accountName = accountName;
			_bus = bus;
			_storage = _profile.Get<ITargetProcessMessage>();
		}
コード例 #3
0
 public AutomaticSearcherListener(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IActivityLogger logger)
 {
     _pluginContext         = pluginContext;
     _profile               = profile;
     _documentIndexProvider = documentIndexProvider;
     _logger = logger;
 }
コード例 #4
0
 public DocumentIndexMemoryWatcher(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, DocumentIndexSetup documentIndexSetup, IActivityLogger logger)
 {
     _pluginContext         = pluginContext;
     _profile               = profile;
     _documentIndexProvider = documentIndexProvider;
     _documentIndexSetup    = documentIndexSetup;
     _logger = logger;
 }
コード例 #5
0
        public ContextQueryPlanBuilder(IDocumentIndexProvider documentIndexProvider, IDocumentIdFactory documentIdFactory, AccountName accountName, IProfileReadonly profile, IEntityTypeProvider entityTypeProvider)
		{
			_documentIndexProvider = documentIndexProvider;
			_documentIdFactory = documentIdFactory;
            _accountName = accountName;
			_profile = profile;
			_entityTypeProvider = entityTypeProvider;
		}
コード例 #6
0
 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;
 }
コード例 #7
0
 public ContextQueryPlanBuilder(IDocumentIndexProvider documentIndexProvider, IDocumentIdFactory documentIdFactory, AccountName accountName, IProfileReadonly profile, IEntityTypeProvider entityTypeProvider)
 {
     _documentIndexProvider = documentIndexProvider;
     _documentIdFactory     = documentIdFactory;
     _accountName           = accountName;
     _profile            = profile;
     _entityTypeProvider = entityTypeProvider;
 }
コード例 #8
0
		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;
 }
コード例 #10
0
 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;
 }
コード例 #11
0
		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);
		}
コード例 #12
0
 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;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
 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);
 }
コード例 #15
0
        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);
        }
コード例 #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();
 }
コード例 #17
0
        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"
                }
            };
        }
コード例 #20
0
 public static PluginProfile ConvertToPluginProfile(this IProfileReadonly profile)
 {
     return(new PluginProfile(profile.Name));
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #25
0
 public SearcherPluginProfileInitializationSaga(IProfileReadonly profileReadonly, IActivityLogger log)
 {
     _profileReadonly = profileReadonly;
     _log             = log;
 }
コード例 #26
0
 public void HandleLocalMessage(IProfileReadonly profile, params IMessage[] messages)
 {
     HandleMessageFromQueue(messages, profile, Address);
 }
コード例 #27
0
 public void ReceiveProfileAddedMessage()
 {
     _profile = _transport.AddProfile("Profile_1");
 }
		public void AddProfile(string profileName, TestRunImportPluginProfile settings)
		{
			CurrentProfile = Transport.AddProfile(profileName, settings);
		}
コード例 #29
0
		public ProfileChanged(IProfileReadonly profile, AccountName accountName)
		{
			_profile = profile;
			_accountName = accountName;
		}
コード例 #30
0
 public void SetProfile(IProfileReadonly profile)
 {
     ObjectFactory.GetInstance <BugzillaServiceMock>().InnerProfile = profile;
 }
コード例 #31
0
		public IProfileGateway Create(AccountName accountName, IProfileReadonly profile)
		{
			return new ProfileGateway(profile, accountName, _tpBus);
		}
コード例 #32
0
 public IProfileGateway Create(AccountName accountName, IProfileReadonly profile)
 {
     return(new ProfileGateway(profile, accountName, _tpBus));
 }
コード例 #33
0
		public void SetProfile(IProfileReadonly profile)
		{
			Context.SetProfile(profile);
		}
コード例 #34
0
 public void HandleMessageFromTp(IProfileReadonly profile, params IMessage[] messages)
 {
     HandleMessageFromQueue(messages, profile, TP_INPUT_COMMAND_QUEUE_NAME);
 }
コード例 #35
0
 public void SetProfile(IProfileReadonly profile)
 {
     Context.SetProfile(profile);
 }
コード例 #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);
        }
コード例 #37
0
 public ProfileChanged(IProfileReadonly profile, AccountName accountName)
 {
     _profile     = profile;
     _accountName = accountName;
 }
コード例 #38
0
 public void AddProfile(string profileName, TestRunImportPluginProfile settings)
 {
     CurrentProfile = Transport.AddProfile(profileName, settings);
 }