コード例 #1
0
 public TaskEndPointHandler(ITaskRetriever taskRetriever, ITaskListRetriever taskListRetriever, IAmACommandProcessor commandProcessor, ICommunicationContext communicationContext)
 {
     this.taskRetriever        = taskRetriever;
     this.taskListRetriever    = taskListRetriever;
     this.commandProcessor     = commandProcessor;
     this.communicationContext = communicationContext;
 }
コード例 #2
0
 public TaskEndPointHandler(ITaskRetriever taskRetriever, ITaskListRetriever taskListRetriever, IAmACommandProcessor commandProcessor, ICommunicationContext communicationContext)
 {
     this.taskRetriever = taskRetriever;
     this.taskListRetriever = taskListRetriever;
     this.commandProcessor = commandProcessor;
     this.communicationContext = communicationContext;
 }
コード例 #3
0
 private HttpClient CreateClient(ITaskRetriever mockTaskRetriever)
 {
     return(factory.WithWebHostBuilder(
                builder => builder.ConfigureTestServices(services =>
     {
         services.AddTransient(p => mockTaskRetriever);
     })).CreateClient());
 }
コード例 #4
0
 public TaskEndPointHandler(ITaskRetriever taskRetriever, ITaskListRetriever taskListRetriever, ICommunicationContext communicationContext, ITasksDAO tasksDAO, ILog logger)
 {
     this.taskRetriever        = taskRetriever;
     this.taskListRetriever    = taskListRetriever;
     this.communicationContext = communicationContext;
     tasksDao    = tasksDAO;
     this.logger = logger;
 }
コード例 #5
0
        public TaskModule(ITaskListRetriever taskListRetriever, ITaskRetriever taskRetriever, IAmACommandProcessor commandProcessor)
        {
            this.taskListRetriever = taskListRetriever;
            this.taskRetriever     = taskRetriever;
            this.commandProcessor  = commandProcessor;

            Get["/todo/index"]     = _ => TasksView();
            Get["/todo/task/{id}"] = parameters => TaskDetails(parameters.id);
            Get["/todo/add"]       = _ => TaskForm();
            Post["/todo/add"]      = _ => AddTask();
            Get["/todo/task/{id}"] = parameters => TaskUpdate(parameters.id);
        }
コード例 #6
0
ファイル: TaskList.cs プロジェクト: clegendre/Paramore
        public TaskListModule(ITaskListRetriever taskListRetriever, ITaskRetriever taskRetriever, IAmACommandProcessor commandProcessor)
        {
            this.taskListRetriever = taskListRetriever;
            this.taskRetriever = taskRetriever;
            this.commandProcessor = commandProcessor;

            Get["/todo/index"] = _ => TasksView();
            Get["/todo/task/{id}"] = parameters => TaskDetails(parameters.id);
            Get["/todo/add"] = _ => TaskForm();
            Post["/todo/add"] = _ => AddTask();

        }
コード例 #7
0
ファイル: TasksController.cs プロジェクト: ritasker/Paramore
 public TasksController(ITaskRetriever taskRetriever, ITaskListRetriever taskListRetriever, IAmACommandProcessor commandProcessor)
 {
     _taskRetriever     = taskRetriever;
     _taskListRetriever = taskListRetriever;
     _commandProcessor  = commandProcessor;
 }
コード例 #8
0
 public TaskSearchController(ITaskRetriever taskRetriever, IMapper mapper)
 {
     this.taskRetriever = taskRetriever;
     this.mapper        = mapper;
 }
コード例 #9
0
ファイル: TasksController.cs プロジェクト: iancooper/Paramore
 public TasksController(ITaskRetriever taskRetriever, ITaskListRetriever taskListRetriever, IAmACommandProcessor commandProcessor)
 {
     _taskRetriever = taskRetriever;
     _taskListRetriever = taskListRetriever;
     _commandProcessor = commandProcessor;
 }