-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pokepay-ci
committed
Feb 9, 2024
1 parent
304e098
commit e5d76fd
Showing
130 changed files
with
5,301 additions
and
3,580 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// DO NOT EDIT: File is generated by code generator. | ||
using System; | ||
using System.Net; | ||
using System.Net.Http; | ||
using NUnit.Framework; | ||
using System.Threading.Tasks; | ||
using System.Collections.Generic; | ||
|
||
using PokepayPartnerCsharpSdk; | ||
|
||
namespace PokepayPartnerCsharpSdk.Test | ||
{ | ||
public class TestActivateUserDevice | ||
{ | ||
private Client client; | ||
|
||
[OneTimeSetUp] | ||
public void OneTimeSetup() | ||
{ | ||
client = new Client("~/.pokepay/test-config.ini"); | ||
} | ||
|
||
[Test] | ||
public async Task ActivateUserDevice0() | ||
{ | ||
try { | ||
Request.ActivateUserDevice request = new Request.ActivateUserDevice( | ||
"011a7372-0000-449b-ba7c-775f7235b236" | ||
); | ||
Response.UserDevice response = await request.Send(client); | ||
Assert.NotNull(response, "Shouldn't be null at least"); | ||
} catch (HttpRequestException e) { | ||
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); | ||
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// DO NOT EDIT: File is generated by code generator. | ||
using System; | ||
using System.Net; | ||
using System.Net.Http; | ||
using NUnit.Framework; | ||
using System.Threading.Tasks; | ||
using System.Collections.Generic; | ||
|
||
using PokepayPartnerCsharpSdk; | ||
|
||
namespace PokepayPartnerCsharpSdk.Test | ||
{ | ||
public class TestCreateBank | ||
{ | ||
private Client client; | ||
|
||
[OneTimeSetUp] | ||
public void OneTimeSetup() | ||
{ | ||
client = new Client("~/.pokepay/test-config.ini"); | ||
} | ||
|
||
[Test] | ||
public async Task CreateBank0() | ||
{ | ||
try { | ||
Request.CreateBank request = new Request.CreateBank( | ||
"e313491a-dd0b-41fe-acbc-31ffc78608e6", | ||
"1d24ee19-477a-4162-a6f1-389da60ac0cb", | ||
"nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", | ||
"WVf0nkI2cpiZrwht02dhTsSxNXBuh" | ||
); | ||
Response.BankRegisteringInfo response = await request.Send(client); | ||
Assert.NotNull(response, "Shouldn't be null at least"); | ||
} catch (HttpRequestException e) { | ||
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); | ||
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); | ||
} | ||
} | ||
|
||
[Test] | ||
public async Task CreateBank1() | ||
{ | ||
try { | ||
Request.CreateBank request = new Request.CreateBank( | ||
"e313491a-dd0b-41fe-acbc-31ffc78608e6", | ||
"1d24ee19-477a-4162-a6f1-389da60ac0cb", | ||
"nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", | ||
"WVf0nkI2cpiZrwht02dhTsSxNXBuh" | ||
) { | ||
Birthdate = "AxPxL", | ||
}; | ||
Response.BankRegisteringInfo response = await request.Send(client); | ||
Assert.NotNull(response, "Shouldn't be null at least"); | ||
} catch (HttpRequestException e) { | ||
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); | ||
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); | ||
} | ||
} | ||
|
||
[Test] | ||
public async Task CreateBank2() | ||
{ | ||
try { | ||
Request.CreateBank request = new Request.CreateBank( | ||
"e313491a-dd0b-41fe-acbc-31ffc78608e6", | ||
"1d24ee19-477a-4162-a6f1-389da60ac0cb", | ||
"nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", | ||
"WVf0nkI2cpiZrwht02dhTsSxNXBuh" | ||
) { | ||
Email = "[email protected]", | ||
Birthdate = "XC0", | ||
}; | ||
Response.BankRegisteringInfo response = await request.Send(client); | ||
Assert.NotNull(response, "Shouldn't be null at least"); | ||
} catch (HttpRequestException e) { | ||
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); | ||
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); | ||
} | ||
} | ||
|
||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// DO NOT EDIT: File is generated by code generator. | ||
using System; | ||
using System.Net; | ||
using System.Net.Http; | ||
using NUnit.Framework; | ||
using System.Threading.Tasks; | ||
using System.Collections.Generic; | ||
|
||
using PokepayPartnerCsharpSdk; | ||
|
||
namespace PokepayPartnerCsharpSdk.Test | ||
{ | ||
public class TestCreateBankTopupTransaction | ||
{ | ||
private Client client; | ||
|
||
[OneTimeSetUp] | ||
public void OneTimeSetup() | ||
{ | ||
client = new Client("~/.pokepay/test-config.ini"); | ||
} | ||
|
||
[Test] | ||
public async Task CreateBankTopupTransaction0() | ||
{ | ||
try { | ||
Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction( | ||
"ee2bc702-0f1f-4fce-b60a-aeacea985e3d", | ||
"074b32f2-5c20-461f-9c53-d4149d475e71", | ||
1544, | ||
"60df8aaf-23fd-4fec-90db-d611c05931e8", | ||
"fb148318-6fe3-47bc-81a7-c36c55ce455d" | ||
); | ||
Response.TransactionDetail response = await request.Send(client); | ||
Assert.NotNull(response, "Shouldn't be null at least"); | ||
} catch (HttpRequestException e) { | ||
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); | ||
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.