Make GeoRadiusResult constructor public to make it mockable by firenero · Pull Request #1175 · StackExchange/StackExchange.Redis

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@firenero

Copy link Copy Markdown

Contributor

@firenero firenero commented

Jul 6, 2019

It's impossible to mock GeoRadius and GeoRadiusAsync methods now because GeoRadiusResult constructor is internal. Given that constructors for all other GEO calls are public I think it's possible to make GeoRadiusResult constructor public as well.

@firenero

Copy link Copy Markdown

Contributor Author

@NickCraver Can I help somehow to get it merged? Lack of public constructor here makes unit testing really hard for a while already.

Copy link Copy Markdown

Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 - we'll get this into the next build

firenero reacted with hooray emoji

@NickCraver

Copy link Copy Markdown

Collaborator

I'm unsure on timeline for the next release, but it'll be on MyGet shortly.

firenero reacted with thumbs up emoji

@NickCraver NickCraver merged commit 7f56a80 into StackExchange:master

Sep 27, 2019

@firenero firenero deleted the public_geo_radius_ctor branch

November 15, 2019 01:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@NickCraver NickCraver NickCraver approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@firenero @NickCraver