resetAgFlow function
void
resetAgFlow()
Clears everything AG Flow keeps between tests: every AgLocator registration and live route scope (disposing realized controllers) and the current AgRouteData.
AG's registries are static, so without this one test's controllers
leak into the next. Call it from setUp (or tearDown):
setUp(resetAgFlow);
Implementation
void resetAgFlow() {
AgLocator.reset();
AgRouteData.reset();
}