コード例 #1
0
        public void SetUp()
        {
            bus = new MockBus();
            rawByteBus = new MockRawByteBus();
            scheduleRepository = new MockScheduleRepository();

            schedulerService = new SchedulerService(
                bus,
                rawByteBus,
                new ConsoleLogger(),
                scheduleRepository,
                () => now);
        }
コード例 #2
0
        public void SetUp()
        {
            bus = new MockBus();
            rawByteBus = new MockRawByteBus();
            scheduleRepository = new MockScheduleRepository();

            schedulerService = new SchedulerService(
                bus,
                rawByteBus,
                new ConsoleLogger(),
                scheduleRepository,
                new SchedulerServiceConfiguration
                {
                    PublishIntervalSeconds = 1,
                    PurgeIntervalSeconds = 1
                });
        }
コード例 #3
0
        public void SetUp()
        {
            bus                = new MockBus();
            rawByteBus         = new MockRawByteBus();
            scheduleRepository = new MockScheduleRepository();

            schedulerService = new SchedulerService(
                bus,
                rawByteBus,
                new ConsoleLogger(),
                scheduleRepository,
                new SchedulerServiceConfiguration
            {
                PublishIntervalSeconds = 1,
                PurgeIntervalSeconds   = 1
            });
        }