public void Batch_WithValidParameters_RunsJavaProcess()
        {
            var generator = new OpenApiGenerator(fileSystem, environment, runner, tools, mavenClient);

            generator.Batch("csharp-server.yaml", "javascript-client.yaml");

            A.CallTo(() => runner.Start(javaExecutable, A <ProcessSettings> ._)).MustHaveHappenedOnceExactly();
        }
        public void Validate_WithValidParameters_RunsJavaProcess()
        {
            var generator = new OpenApiGenerator(fileSystem, environment, runner, tools, mavenClient);

            generator.Validate("specification.yaml");

            A.CallTo(() => runner.Start(javaExecutable, A <ProcessSettings> ._)).MustHaveHappenedOnceExactly();
        }
        public void Batch_WithValidSettings_RunsJavaProcess()
        {
            var generator = new OpenApiGenerator(fileSystem, environment, runner, tools, mavenClient);

            generator.Batch(new OpenApiGeneratorBatchSettings()
            {
                ConfigurationFiles = new FilePathCollection(new FilePath[] { "csharp-server.yaml", "javascript-client.yaml" })
            });

            A.CallTo(() => runner.Start(javaExecutable, A <ProcessSettings> ._)).MustHaveHappenedOnceExactly();
        }
        public void Batch_WithValidConfigurator_RunsJavaProcess()
        {
            var generator = new OpenApiGenerator(fileSystem, environment, runner, tools, mavenClient);

            generator.Batch(settings =>
            {
                settings.ConfigurationFiles.Add("csharp-server.yaml");
            });

            A.CallTo(() => runner.Start(javaExecutable, A <ProcessSettings> ._)).MustHaveHappenedOnceExactly();
        }
        public void Generate_WithValidConfigurator_RunsJavaProcess()
        {
            var generator = new OpenApiGenerator(fileSystem, environment, runner, tools, mavenClient);

            generator.Generate(settings =>
            {
                settings.Specification   = "specification.yaml";
                settings.Generator       = "csharp";
                settings.OutputDirectory = "./src";
            });

            A.CallTo(() => runner.Start(javaExecutable, A <ProcessSettings> ._)).MustHaveHappenedOnceExactly();
        }