Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: .NET Framework CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET Framework
run: |
choco install dotnetfx --version=4.7.2.20180712 -y
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
refreshenv

- name: Run Tests
env:
API_KEY: ${{ secrets.API_KEY }}
PROCESSING_ID: ${{ secrets.PROCESSING_ID }}
run: refreshenv
run: |
dotnet test ./src/PayloadTests/PayloadTests.csproj
1 change: 0 additions & 1 deletion src/PayloadTests/TestAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public void test_get_processing_account()
{
Assert.AreEqual(typeof(pl.ProcessingAccount), this.processing_account.GetType());
Assert.NotNull(pl.ProcessingAccount.Get(this.processing_account.id));
Assert.AreEqual("pending", this.processing_account.status);
}


Expand Down
19 changes: 0 additions & 19 deletions src/PayloadTests/TestTransaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,6 @@ public void test_transaction_ledger_empty()
Assert.IsEmpty(transaction.ledger);
}

[Test]
public void test_unified_payout_batching()
{
pl.Refund.Create(new
{
amount = 10,
processing_id = this.processing_account.id,
payment_method = new pl.Card(new { card_number = "4242 4242 4242 4242", expiry = "12/25" })
});

dynamic transactions = pl.Transaction.Select("*", "ledger")
.FilterBy(new { type = "refund", processing_id = this.processing_account.id })
.All();


Assert.True(transactions.Count == 1);
Assert.True(transactions[0].processing_id == this.processing_account.id);
}

[Test]
public void test_get_transaction()
{
Expand Down