public void process(IContainRequestInformation request) { var timer = Stopwatch.StartNew(); inner.process(request); timer.Stop(); logger.Log("The command took {0} to process {1}.", timer.Elapsed, request); }
public void process(IContainRequestInformation request) { view_engine.render(department_repository.get_the_main_departments_in_the_store()); }
public void run(IContainRequestInformation request) { throw new CommandNotRegisteredException(request); }
public void process(IContainRequestInformation request) { }
public IEnumerable <DepartmentItem> fetch_using(IContainRequestInformation request) { return(Stub.with <StubInformationInTheStoreCatalogRepository>().get_departments_in(request.map <DepartmentItem>())); }
public IProcessOneSpecificRequest get_command_for(IContainRequestInformation the_request) { return commands.FirstOrDefault(x => x.can_process(the_request)) ?? missing_command_factory(); }
public void run(IContainRequestInformation request) { display_engine.display(store_catalog.get_products_for(request.map<DepartmentItem>())); }
public void run(IContainRequestInformation request) { report_engine.display(store_catalog.get_departments_in(request.map<DepartmentItem>())); }
public bool can_handle(IContainRequestInformation request) { return request_criteria(request); }
public void run(IContainRequestInformation request) { display_engine.display(store_catalog.get_the_main_departments()); }
public IProcessOneUniqueRequest get_the_command_that_can_process(IContainRequestInformation request) { return(handlers.FirstOrDefault(x => x.can_handle(request)) ?? missing_handler_factory()); }
public void run(IContainRequestInformation request) { reporting_engine.display(query.fetch_using(request)); }
public void process(IContainRequestInformation request) { command_registry.get_the_command_that_can_process(request).run(request); }
public bool can_handle(IContainRequestInformation request) { return(request_criteria(request)); }
public void run(IContainRequestInformation request) { application_specific_behaviour.run(request); }
public void process(IContainRequestInformation request) { report_engine.render(department_repository.get_the_departments_in(request.map<Department>())); }
public bool can_process(IContainRequestInformation request) { return request_criteria(request); }
public IProcessOneUniqueRequest get_the_command_that_can_process(IContainRequestInformation request) { return handlers.FirstOrDefault(x => x.can_handle(request)) ?? missing_handler_factory(); }
public void run(IContainRequestInformation request) { throw new NotImplementedException(); }
public void run(IContainRequestInformation request) { reporting_engine.display(store_catalog.get_the_main_departments_in_the_store()); }
public void run(IContainRequestInformation request) { report_engine.display(store_catalog.get_products_in(request.map <DepartmentItem>())); }
public void process(IContainRequestInformation request) { view_engine.render(product_repository.get_the_products_of(request.map<Department>())); }
public bool matches(IContainRequestInformation request) { return(false); }
public bool can_process(IContainRequestInformation request) { return request_specification(request); }
public void process(IContainRequestInformation the_request) { application_behaviour.process(the_request); }
public void process(IContainRequestInformation the_request) { command_registry.get_command_for(the_request).process(the_request); }
public bool can_process(IContainRequestInformation request) { return false; }
public void run(IContainRequestInformation request) { application_behaviour.run(request); }
public CommandNotRegisteredException(IContainRequestInformation request) { this.request = request; }
public IProcessRequestInformation get_the_command_that_can_process(IContainRequestInformation request) { return process_request_commands.FirstOrDefault(x => x.can_process(request)) ?? missing_command_factory(); }