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
                });
        }
        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
            });
        }