public TaskEndPointHandler(ITaskRetriever taskRetriever, ITaskListRetriever taskListRetriever, IAmACommandProcessor commandProcessor, ICommunicationContext communicationContext) { this.taskRetriever = taskRetriever; this.taskListRetriever = taskListRetriever; this.commandProcessor = commandProcessor; this.communicationContext = communicationContext; }
private HttpClient CreateClient(ITaskRetriever mockTaskRetriever) { return(factory.WithWebHostBuilder( builder => builder.ConfigureTestServices(services => { services.AddTransient(p => mockTaskRetriever); })).CreateClient()); }
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; }
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); }
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(); }
public TasksController(ITaskRetriever taskRetriever, ITaskListRetriever taskListRetriever, IAmACommandProcessor commandProcessor) { _taskRetriever = taskRetriever; _taskListRetriever = taskListRetriever; _commandProcessor = commandProcessor; }
public TaskSearchController(ITaskRetriever taskRetriever, IMapper mapper) { this.taskRetriever = taskRetriever; this.mapper = mapper; }