Skip to content

Add xUnit test project with broad unit + sandbox coverage#15

Merged
viwodev merged 5 commits into
viwodev:mainfrom
clementfavre:feat/xunit-test-project
Jun 3, 2026
Merged

Add xUnit test project with broad unit + sandbox coverage#15
viwodev merged 5 commits into
viwodev:mainfrom
clementfavre:feat/xunit-test-project

Conversation

@clementfavre

Copy link
Copy Markdown
Collaborator

Introduces SaferPay.Tests (xUnit + FluentAssertions) and brings the repo to 109 unit + 20 sandbox tests, green on net8.0 and net10.0
Covers models, channel routing, extension delegation, and end-to-end sandbox flows for PaymentPage, Transaction, SecureCardData, Batch, OmniChannel and the ManagementApi REST pipeline. CI runs unit and integration suites separately; integration can be skipped offline via SAFERPAY_SKIP_INTEGRATION=1

Also fixes two latent SDK bugs found while testing:
RegisterAlias.Lifetime and AliasInsertRequest.Check/PaymentMethods/LanguageCode were non-nullable, so requests always serialized with default values that Saferpay rejects
A third bug (SaferpayFieldsAccessTokenDeleteAccessTokenAsync returns an abstract type) is documented in-code for a follow-up PR

@clementfavre clementfavre marked this pull request as ready for review May 28, 2026 16:21
@clementfavre clementfavre requested a review from viwodev May 28, 2026 16:23
@viwodev viwodev merged commit 18bea65 into viwodev:main Jun 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants