示例#1
0
        public async Task <ShowMeTheCodeResult> GetAsync()
        {
            _logger.LogInformation("ShowMeTheCode", "Iniciando");
            try
            {
                ShowMeTheCodeResult result = new()
                {
                    GitHubPath = _showMeTheCode.GetGitPath(),
                };

                _logger.LogInformation("ShowMeTheCode", "Processado");
                return(result);
            }
            catch (Exception e)
            {
                await Task.Delay(1);

                _logger.LogError("ShowMeTheCode", args: string.Format("Erro: ", e.Message));
                throw;
            }
        }
示例#2
0
        public void Verificar_Path_Github()
        {
            var path = _showMeTheCode.GetGitPath();

            Assert.IsTrue(path.Equals("https://github.com/PedroPagel/WebApiSoftplan"), "Path do github incorreto");
        }