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

The internal implementation Request class makes outside testing hard #77

Open
xixilive opened this issue Nov 16, 2018 · 3 comments
Open

Comments

@xixilive
Copy link

Tiny.RestClient is a programing-fluent HttpClient!

I use Tiny in my project for RESTful http requests. and i use the Moq library to mock my http service testings.

The internal Request class and it's internal members make it hard to verify my mock testing.

@xixilive xixilive changed the title The internal implementation Request class make outside testing hard The internal implementation Request class makes outside testing hard Nov 16, 2018
@jgiacomini
Copy link
Owner

Hello,
I will try make it more "Mockable". :)

Can you give me a sample something you want to mock and you can't right now ?

@jgiacomini
Copy link
Owner

Request have an interface IRequest ?

Can you mock it with that ?

@xixilive
Copy link
Author

xixilive commented Nov 17, 2018

👍 eg: It's expects request with expected method, path and query parameters.

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

No branches or pull requests

2 participants