registerHandler(routeRecognizer: any, method: any, url: any, handler: any): any
TODO: This method could use some refactoring. There is conflict of interest between keeping clean separation of test and handle method
Test method only returns boolean indicating if request can be handled, and handle method has opportunity to modify response and return promise of it.
In the case of the router with route-recognizer where handlers are associated with routes, this already guarantees that only one handler is selected and makes the test method feel complicated
Will leave as is an investigate cleaner ways at later time.
TODO: This method could use some refactoring. There is conflict of interest between keeping clean separation of test and handle method Test method only returns boolean indicating if request can be handled, and handle method has opportunity to modify response and return promise of it. In the case of the router with route-recognizer where handlers are associated with routes, this already guarantees that only one handler is selected and makes the test method feel complicated Will leave as is an investigate cleaner ways at later time.