act method
Calls registered action in this Azure function. 'cmd' parameter in the action parameters determin what action shall be called.
This method shall only be used in testing.
params
action parameters.- Return Future that receives action result Throws error.
Implementation
Future act(Map<String, dynamic> context) async {
var result = await getHandler()({'body': context});
return result;
//return result.body.body;
}