Skip to content
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

Patch: Adds public to PatchOperation<T> class for testing #3404

Merged
merged 12 commits into from
Aug 25, 2022

Conversation

decodingahmed
Copy link
Contributor

Description

The PatchOperation<T> object is now made public. This will allow consumers to cast any PatchOperation objects to the PatchOperation<T> class in order to access the Value property.

For the author's use-case this will allow tests to check that the service level code is passing correct values into the patch request.

In order to avoid introducing a breaking change, these changes do not change the return type of the Add, Set, Replace and Increment methods of the PatchOperation class.

This PR addresses: #3374

Type of change

  • New feature (non-breaking change which adds functionality)

Closing issues

Closes #3374

@decodingahmed decodingahmed changed the title Make PatchOperation<T> public [Internal] Patch: Make PatchOperation<T> public Aug 24, 2022
@decodingahmed decodingahmed changed the title [Internal] Patch: Make PatchOperation<T> public [Internal] Patch: Makes PatchOperation<T> public Aug 24, 2022
@decodingahmed decodingahmed changed the title [Internal] Patch: Makes PatchOperation<T> public [Internal] Patch: Adds public to PatchOperation<T> class Aug 24, 2022
@decodingahmed decodingahmed changed the title [Internal] Patch: Adds public to PatchOperation<T> class [Internal] Patch: Adds public to PatchOperation<T> class Aug 24, 2022
@decodingahmed decodingahmed changed the title [Internal] Patch: Adds public to PatchOperation<T> class [Internal] Patch: Adds public to PatchOperation<T> class Aug 24, 2022
@decodingahmed decodingahmed changed the title [Internal] Patch: Adds public to PatchOperation<T> class [Internal] Patch: Adds public to PatchOperation<T> class Aug 24, 2022
@decodingahmed
Copy link
Contributor Author

/azp run

1 similar comment
@ealsur
Copy link
Member

ealsur commented Aug 24, 2022

/azp run

@decodingahmed
Copy link
Contributor Author

/azp run

1 similar comment
@ealsur
Copy link
Member

ealsur commented Aug 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ealsur ealsur changed the title [Internal] Patch: Adds public to PatchOperation<T> class Patch: Adds public to PatchOperation<T> class for testing Aug 25, 2022
@ealsur ealsur merged commit a2f9eac into Azure:master Aug 25, 2022
@decodingahmed decodingahmed deleted the feature/public-patchoperation-t branch August 25, 2022 15:28
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.

Make PatchOperation<T> public to allow easier mocking of container.PatchItemAsync
2 participants