/// <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; }
public void Setup() { support.SetupUmbraco(); mailGateway = Mock.Of <IMailGateway>(); controller = new CtaFormController(support.UmbracoContext, support.UmbracoHelper, mailGateway); support.PrepareController(controller); }
internal EmailReactor(IMailGateway mailGateway) : this() { _mailGateway = mailGateway ?? throw new ArgumentNullException(nameof(mailGateway)); }
public EmailHandler(IRepository repository, IMailGateway mailGateway) { _repository = repository; _mailGateway = mailGateway; }
public CtaFormController(UmbracoContext umbracoContext, UmbracoHelper umbracoHelper, IMailGateway mailGateway) : base(umbracoContext, umbracoHelper) { this.mailGateway = mailGateway; }