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

Fix mocking for FeedIterator and Response classes #978

Merged
merged 8 commits into from
Nov 6, 2019

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Nov 6, 2019

Pull Request Template

Description

Users can't mock an internal abstract method. Removing the internal abstract method to fix unit testing.

Fixes #977

@j82w j82w requested a review from kirankumarkolli as a code owner November 6, 2019 02:12
bchong95
bchong95 previously approved these changes Nov 6, 2019
@j82w j82w changed the title Fix feed iterator for mocking Fix mocking for FeedIterator and Response classes Nov 6, 2019
changelog.md Show resolved Hide resolved
@ausfeldt ausfeldt self-requested a review November 6, 2019 20:00
@kirankumarkolli kirankumarkolli merged commit 3f714f2 into master Nov 6, 2019
@kirankumarkolli kirankumarkolli deleted the users/jawilley/query/remove_internal branch November 6, 2019 20:28
j82w added a commit that referenced this pull request Nov 6, 2019
* Fix feed iterator for mocking

* Updated changelog

* Added method back

* Fixed type casting

* Removed additional internal abstract types. Added UT

* Removed unused variable

* Updated changelog

* Fixed tests
dpgregory pushed a commit to dpgregory/azure-cosmos-dotnet-v3 that referenced this pull request Nov 7, 2019
* Fix feed iterator for mocking

* Updated changelog

* Added method back

* Fixed type casting

* Removed additional internal abstract types. Added UT

* Removed unused variable

* Updated changelog

* Fixed tests
@kellyprankin
Copy link

Can you explain how we can use the FeedIterator in a Mock?

@j82w
Copy link
Contributor Author

j82w commented Nov 18, 2019

@kellyprankin can you create an issue asking for samples on how to mock query with feed iterator?

ealsur pushed a commit that referenced this pull request Nov 19, 2019
* Fix feed iterator for mocking

* Updated changelog

* Added method back

* Fixed type casting

* Removed additional internal abstract types. Added UT

* Removed unused variable

* Updated changelog

* Fixed tests
j82w pushed a commit that referenced this pull request Nov 22, 2019
* Make SessionToken on QueryRequestOptions public

* Fix mocking for FeedIterator and Response classes (#978)

* Fix feed iterator for mocking

* Updated changelog

* Added method back

* Fixed type casting

* Removed additional internal abstract types. Added UT

* Removed unused variable

* Updated changelog

* Fixed tests

* Updating package (#975)

* Update azure-pipelines-official.yml (#970)

* Update changelog with 979

* Move line in changelog to correct location

* Remove added in change log to correct location
j82w pushed a commit that referenced this pull request Nov 22, 2019
* Make SessionToken on QueryRequestOptions public

* Fix mocking for FeedIterator and Response classes (#978)

* Fix feed iterator for mocking

* Updated changelog

* Added method back

* Fixed type casting

* Removed additional internal abstract types. Added UT

* Removed unused variable

* Updated changelog

* Fixed tests

* Updating package (#975)

* Update azure-pipelines-official.yml (#970)

* Update changelog with 979

* Move line in changelog to correct location

* Remove added in change log to correct location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants