#chaderland-webhooks
1 messages · Page 1 of 1 (latest)
I've seen elsewhere on this Discord that one unit-test "trick" is to capture an actual event, and use that as part of your unit test (NOT with Stripe)
Yeah I'm not seeing any easy way to do this with our stripe-dotnet library - you can even see in our own unit tests that we use a hardcoded header (https://github.com/stripe/stripe-dotnet/blob/7b62c461d7c0cf2c9e06dce5e564b374a9d232e0/src/StripeTests/Services/Events/EventUtilityTest.cs#L21)
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe-dotnet/EventUtilityTest.cs at 7b62c461d7c0cf2c9e06dce5e564b374a9d232e0 · stripe/stripe-dotnet
Thanks for the responses. I think I'll just have to extract the code that verifies the signature to service with an interface and mock that out.