Skip to content

Commit

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

}
[Test]
public async Task MockExemploBasico()
{
Expand Down

0 comments on commit bfe376f

Please sign in to comment.