示例#1
0
 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);
 }
示例#4
0
 public void process(IContainRequestInformation request)
 {
 }
示例#5
0
 public IEnumerable <DepartmentItem> fetch_using(IContainRequestInformation request)
 {
     return(Stub.with <StubInformationInTheStoreCatalogRepository>().get_departments_in(request.map <DepartmentItem>()));
 }
示例#6
0
 public IProcessOneSpecificRequest get_command_for(IContainRequestInformation the_request)
 {
     return commands.FirstOrDefault(x => x.can_process(the_request)) ??
         missing_command_factory();
 }
示例#7
0
 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());
 }
示例#11
0
 public IProcessOneUniqueRequest get_the_command_that_can_process(IContainRequestInformation request)
 {
     return(handlers.FirstOrDefault(x => x.can_handle(request)) ?? missing_handler_factory());
 }
示例#12
0
 public void run(IContainRequestInformation request)
 {
     reporting_engine.display(query.fetch_using(request));
 }
示例#13
0
 public void process(IContainRequestInformation request)
 {
     command_registry.get_the_command_that_can_process(request).run(request);
 }
示例#14
0
 public bool can_handle(IContainRequestInformation request)
 {
     return(request_criteria(request));
 }
示例#15
0
 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>()));
 }
示例#17
0
 public bool can_process(IContainRequestInformation request)
 {
   return request_criteria(request);
 }
示例#18
0
 public IProcessOneUniqueRequest get_the_command_that_can_process(IContainRequestInformation request)
 {
     return handlers.FirstOrDefault(x => x.can_handle(request)) ?? missing_handler_factory();
 }
示例#19
0
 public void run(IContainRequestInformation request)
 {
   throw new NotImplementedException();
 }
示例#20
0
 public void run(IContainRequestInformation request)
 {
     reporting_engine.display(store_catalog.get_the_main_departments_in_the_store());
 }
示例#21
0
 public void run(IContainRequestInformation request)
 {
     report_engine.display(store_catalog.get_products_in(request.map <DepartmentItem>()));
 }
示例#22
0
 public void process(IContainRequestInformation request)
 {
     view_engine.render(product_repository.get_the_products_of(request.map<Department>()));
 }
示例#23
0
 public bool matches(IContainRequestInformation request)
 {
     return(false);
 }
示例#24
0
 public bool can_process(IContainRequestInformation request)
 {
     return request_specification(request);
 }
示例#25
0
 public void process(IContainRequestInformation request)
 {
   command_registry.get_the_command_that_can_process(request).run(request);
 }
示例#26
0
 public void process(IContainRequestInformation the_request)
 {
     application_behaviour.process(the_request);
 }
示例#27
0
 public void process(IContainRequestInformation the_request)
 {
     command_registry.get_command_for(the_request).process(the_request);
 }
 public void run(IContainRequestInformation request)
 {
     reporting_engine.display(store_catalog.get_the_main_departments_in_the_store());
 }
示例#29
0
 public bool can_process(IContainRequestInformation request)
 {
   return false;
 }
示例#30
0
 public void run(IContainRequestInformation request)
 {
   application_behaviour.run(request);
 }
 public CommandNotRegisteredException(IContainRequestInformation request)
 {
   this.request = request;
 }
示例#32
0
 public IProcessRequestInformation get_the_command_that_can_process(IContainRequestInformation request)
 {
   return process_request_commands.FirstOrDefault(x => x.can_process(request)) ?? missing_command_factory();
 }