Beispiel #1
0
		public Mail2BugEngine(Config.InstanceConfig configInstance, MailboxManagerFactory mailboxManagerFactory)
		{
		    _config = configInstance;

		    Logger.InfoFormat("Initalizing MailboxManager");
            _mailboxManager = mailboxManagerFactory.CreateMailboxManager(_config.EmailSettings);

		    Logger.InfoFormat("Initializing WorkItemManager");
            _messageProcessingStrategy = new Lazy<IMessageProcessingStrategy>(InitProcessingStrategy);
		}
Beispiel #2
0
 public TemporaryInstanceRunner(Config.InstanceConfig instanceConfig, MailboxManagerFactory mailboxManagerFactory)
 {
     _instanceConfig = instanceConfig;
     _mailboxManagerFactory = mailboxManagerFactory;
     Name = instanceConfig.Name;
 }
Beispiel #3
0
 public PersistentInstanceRunner(Config.InstanceConfig instanceConfig, MailboxManagerFactory mailboxManagerFactory)
 {
     Name = instanceConfig.Name;
     _engine = new Mail2BugEngine(instanceConfig, mailboxManagerFactory);
 }
        private static void ProcessMailbox(
            MailManagerMock mailManager, 
            Config.InstanceConfig instanceConfig,
            WorkItemManagerMock workItemManagerMock)
        {
            var sbs = new SimpleBugStrategy(instanceConfig, workItemManagerMock);

            foreach (var incomingEmailMessage in mailManager.ReadMessages())
            {
                sbs.ProcessInboxMessage(incomingEmailMessage);
            }
        }