-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Service Bus Functions Extensions] Actions Mock Support #25489
Conversation
The focus of these changes is to add a protected constructor to the `ServiceBusMessageActions` class to support mocking for test scenarios.
API changes have been detected in API changes + protected ServiceBusMessageActions(); |
Hello @jsquire! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
/// This constructor exists only to support mocking. When used, class state is not fully initialized, and | ||
/// will not function correctly; virtual members are meant to be mocked. | ||
///</remarks> | ||
protected ServiceBusMessageActions() |
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.
I think we will need to add this for the derived class too - ServiceBusSesssionMessageActions.
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.
My bad; didn't see it when I patched this. I'll push that out in another PR.
Fixes #25405 |
# Summary The focus of these changes is to add a protected constructor to the `ServiceBusSessionMessageActions` class to support mocking for test scenarios. # References and Related - [Twitter thread discussing mocking difficulties](https://twitter.com/rolandkru/status/1462756372651593733) - [[Service Bus Functions Extensions] Actions Mock Support (#25489)](#25489)
Summary
The focus of these changes is to add a protected constructor to the
ServiceBusMessageActions
class to support mocking for test scenarios.References and Related