private static int Invoke(IFileSystem fileSystem, IProcessProxy processProxy, IConsole?console = null)
        {
            var command = new ValidateCommand()
            {
                Handler = new ValidateCommand.CommandHandler(
                    MockEnvironmentProxy.Default,
                    processProxy,
                    fileSystem,
                    MockLoggerFactory.CreateGenericLogger <ValidateCommand>()),
            };

            return(command.Invoke("", console));
        }