private void InitializeHangFireScheduler() { IScheduleCallback scheduledCallBack = new HangFireScheduleCallback(); scheduledCallBack.RunValidatorEvent += ScheduledCallBack_RunValidatorEvent1; this._hangFireScheduler = new HangFireScheduler(this._backGroundJobServer, scheduledCallBack); }
public void HangFireSchedulerThrowsOnNullConstructorParams(IScheduleCallback scheduledCallBack) { Assert.ThrowsAny <Exception>(() => { HangFireScheduler hfs = new HangFireScheduler(null, scheduledCallBack); }); Assert.ThrowsAny <Exception>(() => { HangFireScheduler hfs = new HangFireScheduler(this._backGroundJobServer, null); }); }