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