public void Default() { var config = new BackgroundJobConfiguration(typeof(BackgroundJob <string>)); config.ArgsType.ShouldBe(typeof(string)); config.JobType.ShouldBe(typeof(BackgroundJob <string>)); config.JobName.ShouldBe(typeof(string).FullName); }
/// <summary> /// /// </summary> /// <param name="jobConfiguration"></param> public void AddJob(BackgroundJobConfiguration jobConfiguration) { _jobConfigurationsByArgsType[jobConfiguration.ArgsType] = jobConfiguration; _jobConfigurationsByName[jobConfiguration.JobName] = jobConfiguration; }