protected void CreateSchedule()
{
if (this.Repository != null)
{
ScheduleRecord scheduleRecord = new ScheduleRecord()
{
ApplicationName = BlueCollarSection.Section.ApplicationName,
Enabled = true,
Name = "Test",
QueueName = "*",
RepeatType = ScheduleRepeatType.Days,
RepeatValue = 1,
StartOn = DateTime.UtcNow.FloorWithSeconds()
};
this.Repository.CreateSchedule(scheduleRecord, null);
Assert.IsNotNull(scheduleRecord.Id);
}
}