public async Task <ActionResult> Get() { RepoSoftplayerInfoAPIService serviceAPI = new RepoSoftplayerInfoAPIService(); ShowRepoService RepoService = new ShowRepoService(serviceAPI); RepoDTO repo = await RepoService.Execute(); return(Ok(repo)); }
public async void Filled_url_field() { ShowRepoService repoService = new ShowRepoService(fakeRepoServiceApi); var expected = "https://github.com/gablemos/softplayer"; var result = await repoService.Execute(); expected.Should().Be(result.html_url); }
public async Task <ActionResult> Get() { //TODO //Se der tempo adicionar ijeção de dependencia RepoSoftplayerInfoAPIService serviceAPI = new RepoSoftplayerInfoAPIService(); ShowRepoService RepoService = new ShowRepoService(serviceAPI); RepoDTO repo = await RepoService.Execute(); return(Ok(repo)); }