private async Task <RouteResult> RunRouteWorkflow(TestParameters parameters)
    {
        var sut = new RouteWorkflowTask(parameters.RouteRequest,
                                        _fixture.GetMock <IRouteEntryRegistry>().Object,
                                        _fixture.GetMock <IRouteAuthorizationManager>().Object,
                                        _fixture.GetMock <IRouterService>().Object,
                                        _logger);

        var routeResult = await sut.GoAsync();

        return(routeResult);
    }
    public static RouteWorkflowTask Go(
        RouteRequest routeRequest,
        IRouteEntryRegistry routeEntryRegistry,
        IRouteAuthorizationManager routeAuthorizationManager,
        IRouterService routerService,
        ILogger logger)
    {
        var workflow = new RouteWorkflowTask(routeRequest, routeEntryRegistry, routeAuthorizationManager,
                                             routerService,
                                             logger);

        workflow.RouteResult = workflow.GoAsync();
        return(workflow);
    }