/// <summary>
 /// Initializes a new instance.
 /// </summary>
 private Program(TeamFoundationServerGateway tfsGateway, IMailGateway mailGateway, TimeSpan cutoffTimeSpan)
 {
     m_tfsGateway     = tfsGateway;
     m_adGateway      = new ActiveDirectoryGateway();
     m_mailGateway    = mailGateway;
     m_runTime        = DateTime.Now;
     m_cutoffTimeSpan = cutoffTimeSpan;
 }
Exemple #2
0
		/// <summary>
		/// Initializes a new instance.
		/// </summary>
		private Program(TeamFoundationServerGateway tfsGateway, IMailGateway mailGateway, TimeSpan cutoffTimeSpan)
		{
			m_tfsGateway = tfsGateway;
			m_adGateway = new ActiveDirectoryGateway();
			m_mailGateway = mailGateway;
			m_runTime = DateTime.Now;
			m_cutoffTimeSpan = cutoffTimeSpan;
		}
Exemple #3
0
        public void Setup()
        {
            support.SetupUmbraco();

            mailGateway = Mock.Of <IMailGateway>();

            controller = new CtaFormController(support.UmbracoContext, support.UmbracoHelper, mailGateway);
            support.PrepareController(controller);
        }
Exemple #4
0
 internal EmailReactor(IMailGateway mailGateway)
     : this()
 {
     _mailGateway = mailGateway ?? throw new ArgumentNullException(nameof(mailGateway));
 }
Exemple #5
0
 public EmailHandler(IRepository repository, IMailGateway mailGateway)
 {
     _repository  = repository;
     _mailGateway = mailGateway;
 }
Exemple #6
0
 public CtaFormController(UmbracoContext umbracoContext, UmbracoHelper umbracoHelper, IMailGateway mailGateway) : base(umbracoContext, umbracoHelper)
 {
     this.mailGateway = mailGateway;
 }