Ejemplo n.º 1
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;
 }
Ejemplo n.º 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;
		}
Ejemplo n.º 3
0
        public void Setup()
        {
            support.SetupUmbraco();

            mailGateway = Mock.Of <IMailGateway>();

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