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

Fixes #2861: Pass the IServiceProvider to ODataUriParser #2863

Merged
merged 3 commits into from
Jan 22, 2025
Merged

Conversation

xuzhg
Copy link
Member

@xuzhg xuzhg commented Nov 20, 2024

Fixes #2861: Pass the IServiceProvider to ODataUriParser

@gathogojr
Copy link
Contributor

@xuzhg Add a test to verify that if request container is injected, it is used as expected

@xuzhg
Copy link
Member Author

xuzhg commented Nov 21, 2024

@xuzhg Add a test to verify that if request container is injected, it is used as expected

I tried, but it seems it's hard to construct such test. I am failed.

…ataResourceDeserializerHelpers.cs

Co-authored-by: John Gathogo <[email protected]>
@robertmclaws
Copy link
Collaborator

Maybe try injecting a different placeholder service type into each container, and then test that the right placeholder service is in the container that the ODataUriParser is using.

@xuzhg xuzhg merged commit bc7ebbc into master Jan 22, 2025
1 of 2 checks passed
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.

Microsoft.AspNet.OData 7.7.5.0 - ODataResourceDeserializer to take in IServiceProvider
3 participants