Exemple #1
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!",
         "(A) This is high priority",
         "",
         "(D) This is lower",
         "(B) This is in between with @context",
         "(Z) Very low priority with +project",
         "(E) Midrange",
     };
     _handler = new TaskQueryHandler(_taskFile, new TaskConfiguration());
 }
Exemple #2
0
 public TaskQueryHandlerTest()
 {
     _currentUserServiceMock.Setup(a => a.GetIdCurrentUser()).Returns(Results.Ok <int>(ConstantsTasksTest.taskDomain.AccountId));
     _taskQueryHandler = new TaskQueryHandler(_tasksRepoByAccountMock.Object, _currentUserServiceMock.Object);
 }