#88 Fix .AsQueryable calls to the test data set#90
Merged
ramantsitou merged 1 commit intoramantsitou:masterfrom Oct 6, 2025
Merged
#88 Fix .AsQueryable calls to the test data set#90ramantsitou merged 1 commit intoramantsitou:masterfrom
.AsQueryable calls to the test data set#90ramantsitou merged 1 commit intoramantsitou:masterfrom
Conversation
2b41ed6 to
2bcc6e8
Compare
Owner
|
Hello @Catlandor . Thanks for your effort and the PR. What should be the version number of the MockQueryable that should include your changes? |
Contributor
Author
|
Hi @RomanTitov |
This was referenced Oct 6, 2025
renebentes
pushed a commit
to renebentes/3054
that referenced
this pull request
Oct 8, 2025
Updated [MockQueryable.NSubstitute](https://github.com/romantitov/MockQueryable) from 8.0.0 to 8.0.1. <details> <summary>Release notes</summary> _Sourced from [MockQueryable.NSubstitute's releases](https://github.com/romantitov/MockQueryable/releases)._ ## 8.0.1 ## What's Changed * #88 Fix `.AsQueryable` calls to the test data set by @Catlandor in ramantsitou/MockQueryable#90 * Move EF Dependency to v8 by @johnw86 in ramantsitou/MockQueryable#91 ## New Contributors * @johnw86 made their first contribution in ramantsitou/MockQueryable#91 **Full Changelog**: ramantsitou/MockQueryable@v8.0.0...v8.0.1 Commits viewable in [compare view](ramantsitou/MockQueryable@v8.0.0...v8.0.1). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Oct 27, 2025
This was referenced Mar 9, 2026
Closed
deps(backend): Bump MockQueryable.EntityFrameworkCore and MockQueryable.Moq
chelebyy/arackiralama#40
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Details
.AsQueryablecalls to the test data set by returning the mocked data set instead of the actual data set for the fakedAsQueryablecallDescription
Following call:
A.CallTo(() => mock.AsQueryable()).Returns(data.AsQueryable());...was replaced with:
A.CallTo(() => mock.AsQueryable()).Returns(mock);This fixes the issue, as the mock will relay any further calls to the test query provider. So any further calls work the same as if
.AsQueryable()was not called.Related Issue
#88
How Has This Been Tested
AsQueryable()calls work for all mocking frameworks.Checklist