Exemplo n.º 1
0
        public async Task <ActionResult> Get()
        {
            RepoSoftplayerInfoAPIService serviceAPI = new RepoSoftplayerInfoAPIService();
            ShowRepoService RepoService             = new ShowRepoService(serviceAPI);
            RepoDTO         repo = await RepoService.Execute();

            return(Ok(repo));
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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));
        }