Ejemplo n.º 1
0
        public AzureDevOps_Platform_Test()
        {
            _options = new OptionsDto
            {
                Mode           = "AzureDevOps",
                ApiKey         = "cqjk3s2pkv5x5o57feaw6j2qs4id2thfsw3w544hiqgt347gfoja",
                SourceUri      = "http://kamina.azuredevops.local/DefaultCollection/Kamina",
                ProjectName    = "Tengen Toppa Gurren Lagann",
                SourceBranch   = "develop",
                LastKnownFile  = "Input/BuildOrder.json",
                MaxErrorCycles = 6
            };

            _azureDevOps         = new AzureDevOpsLogic(_options);
            _fileBuildOrderLogic = new FileBuildOrderLogic(_options);
        }
Ejemplo n.º 2
0
        static int Main(string[] args)
        {
            int output = 0;

            Parser.Default.ParseArguments <OptionsDto>(args).WithParsed(option =>
            {
                switch (option.Mode)
                {
                case "AzureDevOps":
                    {
                        AzureDevOpsLogic azureDevOpsLogic = new AzureDevOpsLogic(option);

                        output = azureDevOpsLogic.PingPong().Result;

                        break;
                    }
                }
            });

            return(output);
        }