public SampleTasks()
 {
     Tasks = new Tasks(new InMemoryEntityStore <TaskRecord>());
     Tasks.Apply(new CreateTask(WeeklyTask, "WeeklyTask", 4, TaskImportance.Normal, TaskFrequency.Weekly));
     Tasks.Apply(new CreateTask(DailyTask, "DailyTask", 2, TaskImportance.Normal, TaskFrequency.Daily));
 }