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