Skip to content

Commit

Permalink
#5 - melhorias de cobertura
Browse files Browse the repository at this point in the history
  • Loading branch information
matmiranda committed Aug 16, 2023
1 parent e77f689 commit d20a278
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PagBankTest/UnitTest1.cs → PagBankTest/UnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ namespace PagBankTest
{
public class Tests
{
[Test]
public async Task ExemploBasicoInvalidToken()
{
var client = new PagBankClient();
client.WithBaseUrl(BaseUrl.Sandbox);
client.WithMethod(PagBankMethod.Get);
client.WithToken("your-token");
client.WithResource("{seu_recurso}");
var response = await client.ExecuteAsync();
Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.Forbidden));
}
[Test]
public async Task MockExemploBasico()
{
Expand Down

0 comments on commit d20a278

Please sign in to comment.