Esempio n. 1
0
        public void SetUp()
        {
            _dao       = A.Fake <ITlsRptPeriodicSchedulerDao>();
            _publisher = A.Fake <IMessagePublisher>();
            _config    = A.Fake <ITlsRptPeriodicSchedulerConfig>();
            _log       = A.Fake <ILogger <TlsRptPollSchedulerProcessor> >();

            _sut = new TlsRptPollSchedulerProcessor(_dao, _publisher, _config, _log);
        }
Esempio n. 2
0
 public TlsRptPollSchedulerProcessor(ITlsRptPeriodicSchedulerDao dao,
                                     IMessagePublisher publisher,
                                     ITlsRptPeriodicSchedulerConfig config,
                                     ILogger <TlsRptPollSchedulerProcessor> log)
 {
     _dao       = dao;
     _publisher = publisher;
     _config    = config;
     _log       = log;
 }
Esempio n. 3
0
        protected override void SetUp()
        {
            base.SetUp();

            TruncateDatabase().Wait();

            IConnectionInfoAsync connectionInfoAsync = A.Fake <IConnectionInfoAsync>();

            A.CallTo(() => connectionInfoAsync.GetConnectionStringAsync()).Returns(ConnectionString);

            ITlsRptPeriodicSchedulerConfig config = A.Fake <ITlsRptPeriodicSchedulerConfig>();

            A.CallTo(() => config.RefreshIntervalSeconds).Returns(0);
            A.CallTo(() => config.DomainBatchSize).Returns(10);

            _dao = new TlsRptPeriodicSchedulerDao(connectionInfoAsync, config);
        }
Esempio n. 4
0
 public TlsRptPeriodicSchedulerDao(IConnectionInfoAsync connectionInfo, ITlsRptPeriodicSchedulerConfig config)
 {
     _connectionInfo = connectionInfo;
     _config         = config;
 }