-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(notification): update NotificationService to use interface #2948
refactor(notification): update NotificationService to use interface #2948
Conversation
Codecov ReportBase: 43.57% // Head: 45.03% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2948 +/- ##
==========================================
+ Coverage 43.57% 45.03% +1.46%
==========================================
Files 551 551
Lines 25936 25933 -3
Branches 263 263
==========================================
+ Hits 11302 11680 +378
+ Misses 14594 14213 -381
Partials 40 40
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Please show how to add a test with Notification, just add it in the test project. |
…/github.com/wss-javeney/ant-design-blazor into implement-notification-service-as-interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…erface (ant-design-blazor#2948) * refactor(notification): update NotificationService to use interface * Add example unit test
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
It is not possible to test that an application triggered an AntDesign.Notification currently due to it being a concrete class. This refactors it into a class that implements an interface. Users can use dependency injection now and unit test that the code triggered notifications to show.
📝 Changelog
☑️ Self Check before Merge