web-push-libs / web-push-csharp

Web Push library for C#
Mozilla Public License 2.0
429 stars 108 forks source link

WebPushClient: Implement an interface for mocking in UnitTests #79

Closed kristof12345 closed 3 years ago

kristof12345 commented 3 years ago

Hi!

When trying to make unit tests for my app it'd be really useful to mock WebPushClient. For this creating an abstract base class or an interface would be really useful (or just making SendNotificationAsync overridable).

Thank you!

coryjthompson commented 3 years ago

Thanks for your advice.

IWebPushClient was introduced for mocking and released in v1.0.12