コード例 #1
0
 public void SetUp()
 {
     _taskFile           = new TaskFileMock();
     _taskFile.TaskLines = new List <string>
     {
         "2020-10-16 This is something to do!",
         "(B) 2020-10-16 This is something to do with @context and a +project!",
         "",
         "(A) This is high priority"
     };
     _handler = new AppendCommandHandler(_taskFile, new TaskConfiguration());
 }
コード例 #2
0
 public void SetUp()
 {
     _taskFile           = new TaskFileMock();
     _taskFile.TaskLines = new List <string>
     {
         "2020-10-16 This is something to do!",
         "2020-10-16 This is something to do with @context2 and a +project!",
         "(A) This is high priority",
         "",
         "(D) This is lower",
         "(B) This is in between with @context1",
         "(Z) Very low priority with +project",
         "(E) Midrange",
     };
     _handler = new ListContextsQueryHandler(_taskFile, new TaskConfiguration());
 }
コード例 #3
0
 public void SetUp()
 {
     _taskFile           = new TaskFileMock();
     _taskFile.TaskLines = new List <string>
     {
         "2020-10-16 This is something to do!",
         "x This is complete @context",
         "2020-10-16 This is something to do with @context and a +project!",
         "(A) This is high priority",
         "",
         "(D) This is lower",
         "(Z) Very low priority with +project",
         "(E) Midrange",
     };
     _taskFile.DoneLines = new List <string>
     {
         "x One @context",
         "x Two +project"
     };
     _handler = new ListAllQueryHandler(_taskFile, new TaskConfiguration());
 }
コード例 #4
0
 public void SetUp()
 {
     _taskFile           = new TaskFileMock();
     _taskFile.TaskLines = new List <string>
     {
         "2020-10-16 This is something to do!",
         "2020-10-16 This is something to do with @context and a +project!",
         "x 2020-10-18 2020-10-14 This is high priority",
         "",
         "(D) This is lower",
         "x 2020-10-18 This is in between with @context",
         "(Z) Very low priority with +project",
         "(E) Midrange",
     };
     _taskFile.DoneLines = new List <string>
     {
         "x 2020-09-27 Remember mom's birthday @home",
         "x 2020-08-12 2020-07-23 Pay bills @home"
     };
     _handler = new ArchiveTasksCommandHandler(_taskFile, new TaskConfiguration());
 }
コード例 #5
0
 public void SetUp()
 {
     _taskFile           = new TaskFileMock();
     _taskFile.TaskLines = new List <string>
     {
         "x 2020-10-16 This is something to do!",
         "2020-10-16 This is something to do with @context and a +project!",
         "(A) This is high priority",
         "",
         "(D) This is lower",
         "(B) This is in between with @context",
         "(Z) Very low priority with +project",
         "(E) Midrange",
     };
     _taskFile.OtherLines = new List <string>
     {
         "One",
         "Two"
     };
     _handler = new ListTasksQueryHandler(_taskFile);
 }
コード例 #6
0
 public void SetUp()
 {
     _taskFile = new TaskFileMock();
     _handler  = new AddTaskCommandHandler(_taskFile);
 }