(type: any,
actionAttr: IActionMethodAttribute,
res: Response)
| 205 | |
| 206 | // made public for unit test and not available on interface contract |
| 207 | setUpDinoController(type: any, |
| 208 | actionAttr: IActionMethodAttribute, |
| 209 | res: Response): DinoController { |
| 210 | |
| 211 | let api = this.resolve<ApiController>(type, res.locals.dino); |
| 212 | let action = ControllerAction.create(actionAttr); |
| 213 | let ctx = DinoController.create(api, action); |
| 214 | |
| 215 | return ctx; |
| 216 | } |
| 217 | |
| 218 | // Populates controller middlewares, filters etc by walking up the controllers inheritance chain |
| 219 | // made public for unit test and not available on interface contract |
no test coverage detected