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; } }
public void Verificar_Path_Github() { var path = _showMeTheCode.GetGitPath(); Assert.IsTrue(path.Equals("https://github.com/PedroPagel/WebApiSoftplan"), "Path do github incorreto"); }