コード例 #1
0
 public DkimPollerHandler(IDkimDnsClient dnsClient, IMessageDispatcher dispatcher,
                          IDkimPollerConfig config, ILogger <DkimPollerHandler> log)
 {
     _dnsClient  = dnsClient;
     _dispatcher = dispatcher;
     _config     = config;
     _log        = log;
 }
        public void SetUp()
        {
            _dnsClient         = A.Fake <IDkimDnsClient>();
            _messageDispatcher = A.Fake <IMessageDispatcher>();
            _config            = A.Fake <IDkimPollerConfig>();
            _log = A.Fake <ILogger <DkimPollerHandler> >();

            A.CallTo(() => _config.SnsTopicArn).Returns("fakeSnsTopic");

            _sut = new DkimPollerHandler(_dnsClient, _messageDispatcher, _config, _log);
        }
コード例 #3
0
 public DnsNameServerProvider(ILogger <DnsNameServerProvider> log, IDkimPollerConfig config)
 {
     _log    = log;
     _config = config;
 }