Example #1
0
 public SeleniumResultsCommand(IStorageRepository storageRepository, ILocalBus localBus, ITestRunImportResultsReaderFactory resultsReaderFactory, IActivityLogger log)
 {
     _storageRepository    = storageRepository;
     _localBus             = localBus;
     _resultsReaderFactory = resultsReaderFactory;
     _log = log;
 }
 public NewRevisionRangeDetectedMessageHandler(IVersionControlSystem versionControlSystem, ILocalBus bus, IActivityLogger logger)
 {
     _versionControlSystem = versionControlSystem;
     _bus    = bus;
     _logger = logger;
     _parser = new CommentParser();
 }
Example #3
0
 public ImportBugsChunkHandler(ILocalBus bus, IStorageRepository storageRepository, IActivityLogger logger, IBugzillaService bugzillaService)
 {
     _bus = bus;
     _storageRepository = storageRepository;
     _logger            = logger;
     _bugzillaService   = bugzillaService;
 }
		public SeleniumResultsCommand(IStorageRepository storageRepository, ILocalBus localBus, ITestRunImportResultsReaderFactory resultsReaderFactory, IActivityLogger log)
		{
			_storageRepository = storageRepository;
			_localBus = localBus;
			_resultsReaderFactory = resultsReaderFactory;
			_log = log;
		}
 public SyncNowCommand(IStorageRepository storageRepository, ILocalBus localBus, IStreamFactory streamFactory,
                       ITestRunImportResultsReaderFactory resultsReaderFactory)
 {
     _storageRepository    = storageRepository;
     _localBus             = localBus;
     _streamFactory        = streamFactory;
     _resultsReaderFactory = resultsReaderFactory;
 }
		public SyncNowCommand(IStorageRepository storageRepository, ILocalBus localBus, IStreamFactory streamFactory,
		                                      ITestRunImportResultsReaderFactory resultsReaderFactory)
		{
			_storageRepository = storageRepository;
			_localBus = localBus;
			_streamFactory = streamFactory;
			_resultsReaderFactory = resultsReaderFactory;
		}
Example #7
0
 public MailInbox(ILocalBus localBus, MessageUidRepository messageUidRepository,
                  IMessagePackSize messagePackSize, IActivityLogger log)
 {
     _messageUidRepository = messageUidRepository;
     _messagePackSize      = messagePackSize;
     _localBus             = localBus;
     _log = log;
 }
		public AutomaticTestRunImportListener(IStorageRepository storageRepository, ILocalBus localBus, IStreamFactory streamFactory,
																					ITestRunImportResultsReaderFactory resultsReaderFactory, IActivityLogger log)
		{
			_storageRepository = storageRepository;
			_localBus = localBus;
			_streamFactory = streamFactory;
			_resultsReaderFactory = resultsReaderFactory;
			_log = log;
		}
Example #9
0
 public BugsSynchronizer(ILocalBus bus, IStorageRepository storageRepository, IBugzillaService bugzillaService,
                         IBugChunkSize bugChunkSize, IActivityLogger logger)
 {
     _bus = bus;
     _storageRepository = storageRepository;
     _bugzillaService   = bugzillaService;
     _bugChunkSize      = bugChunkSize;
     _logger            = logger;
 }
		protected VersionControlSystemProcessorBase(IRevisionIdComparer revisionComparer, IStorageRepository storage, ISourceControlConnectionSettingsSource settingsSource, IVersionControlSystem versionControlSystem, ILocalBus bus, IActivityLogger logger)
		{
			RevisionComparer = revisionComparer;
			Storage = storage;
			VersionControlSystem = versionControlSystem;
			Bus = bus;
			Logger = logger;
			StartRevision = revisionComparer.ConvertToRevisionId(settingsSource.StartRevision);
		}
Example #11
0
 protected VersionControlSystemProcessorBase(IRevisionIdComparer revisionComparer, IStorageRepository storage, ISourceControlConnectionSettingsSource settingsSource, IVersionControlSystem versionControlSystem, ILocalBus bus, IActivityLogger logger)
 {
     RevisionComparer     = revisionComparer;
     Storage              = storage;
     VersionControlSystem = versionControlSystem;
     Bus           = bus;
     Logger        = logger;
     StartRevision = revisionComparer.ConvertToRevisionId(settingsSource.StartRevision);
 }
 public EmailReader(IStorageRepository storageRepository, ILocalBus localBus, IEmailClient client,
                    MessageUidRepository messageUidRepository, IActivityLogger log)
 {
     _client = client;
     _messageUidRepository = messageUidRepository;
     _localBus             = localBus;
     _profile       = storageRepository.GetProfile <ProjectEmailProfile>();
     _log           = log;
     _processedUids = new List <string>();
 }
 public TfsWorkItemsListener(
     IWorkItemsStore workItemsStore,
     ILocalBus bus,
     IStorageRepository storage,
     IActivityLogger logger)
 {
     _workItemsStore = workItemsStore;
     _bus            = bus;
     _storage        = storage;
     _logger         = logger;
 }
Example #14
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();
 }
Example #15
0
        static void Main(string[] args)
        {
            ILocalBus bus = Intialize();

            var command = new SayHelloToUser(System.Environment.UserName);

            bus.Execute(command);

            using (var scope = Configuration.RootContainer.BeginLifetimeScope())
            {
                var repositoryFactory = scope.GetInstance <IRepositoryFactory>();

                var repository = repositoryFactory.GetRepository <GreetingLog>();

                var log = repository.Get(1);
                Console.WriteLine("Greeting log: Greeted {0} at {1}", log.Name, log.OccuredAt.ToShortTimeString());
            }

            Console.WriteLine("\nPress any key to exit...");
            Console.ReadKey();
        }
 public SurveyController(IRepositoryFactory repositoryFactory, ILocalBus bus)
 {
     this.bus = bus;
     surveys  = repositoryFactory.GetRepository <Survey>();
 }
 public HelloUserHandler(ILocalBus bus, IRepositoryFactory repositoryFactory)
 {
     this.bus        = bus;
     this.repository = repositoryFactory.GetRepository <GreetingLog>();
 }
 public TestController(ILocalBus bus)
 {
     //this is simply done to ensure the dependency injection is working.
     this.bus = bus;
 }
 public AttachmentImporter(IStorageRepository storageRepository, ILocalBus localBus, IActivityLogger logger)
 {
     _storageRepository = storageRepository;
     _localBus          = localBus;
     _logger            = logger;
 }
		public SyncNowCommand(ILocalBus localBus, IPluginContext pluginContext, IProfileCollection profileCollection)
		{
			_localBus = localBus;
			_pluginContext = pluginContext;
			_profileCollection = profileCollection;
		}
Example #21
0
 public ParserPipeline(ILocalBus bus)
 {
     Bus = bus;
 }
 public RevisionCreatedLocalMessageHandler(ILocalBus bus, IActivityLogger logger)
 {
     _bus    = bus;
     _logger = logger;
 }
Example #23
0
 public VersionControlSystemListener(IVersionControlSystem versionControlSystem, IRevisionIdComparer revisionComparer, ILocalBus bus,
                                     IStorageRepository storage, ISourceControlConnectionSettingsSource settingsSource, IActivityLogger logger)
     : base(revisionComparer, storage, settingsSource, versionControlSystem, bus, logger)
 {
 }
Example #24
0
 public SyncNowCommand(ILocalBus localBus, IPluginContext pluginContext, IProfileCollection profileCollection)
 {
     _localBus          = localBus;
     _pluginContext     = pluginContext;
     _profileCollection = profileCollection;
 }
 public SyncNowMessageHandler(ILocalBus localBus, IStorageRepository storage)
 {
     _localBus = localBus;
     _storage  = storage;
 }
Example #26
0
 public PollResultController(IRepositoryFactory repositoryFactory, ILocalBus bus)
 {
     this.bus    = bus;
     pollResults = repositoryFactory.GetRepository <PollResult>();
 }
Example #27
0
 public RepositoryRescanInitiatedMessageHandler(IVersionControlSystem versionControlSystem, IRevisionIdComparer revisionComparer, ILocalBus bus, ISourceControlConnectionSettingsSource settingsSource, IStorageRepository storage, IActivityLogger logger)
     : base(revisionComparer, storage, settingsSource, versionControlSystem, bus, logger)
 {
 }