public override async Task ExecuteCommandWithDependency()
 {
     using (Scope scope = AsyncScopedLifestyle.BeginScope(this.container))
     {
         var command = new CommandWithDependency();
         await this.requestProcessor.HandleAsync(command, default);
     }
 }
        public override async Task ExecuteCommandWithDependency()
        {
            using (var scope = this.serviceProvider.CreateScope())
            {
                var requestProcessor = scope.ServiceProvider.GetRequiredService <IRequestProcessor>();

                var command = new CommandWithDependency();
                await requestProcessor.HandleAsync(command, default);
            }
        }