public Task Configure(string endpointName, EndpointConfiguration configuration, RunSettings settings)
    {
        if (router == null)
        {
            router = new FakeTransportRouter();
        }

        var infrastructure = new FakeTransportInfrastructure();

        router.Add(infrastructure);
        configuration.UseTransport <FakeTransport>().Use(infrastructure);

        return(Task.CompletedTask);
    }
 public Task Cleanup()
 {
     router = null;
     return(Task.CompletedTask);
 }