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 issue #403 - implement an interface for mocking and DI #456

Merged
merged 1 commit into from
May 16, 2017
Merged

Fix issue #403 - implement an interface for mocking and DI #456

merged 1 commit into from
May 16, 2017

Conversation

nate-red
Copy link
Contributor

The class SendGridClient cannot be mocked with the most popular mocking frameworks in .net : it neither has a parameterless constructor nor an interface.

By adding an interface, the SendGridClient will become compatible with many DI and mocking framework.

I personally need to test my library interaction with the SendGrid library using the Moq mocking framework.

Other users having the same issues : #403

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label May 16, 2017
@SendGridDX
Copy link

SendGridDX commented May 16, 2017

CLA assistant check
All committers have signed the CLA.

@thinkingserious thinkingserious merged commit a9f1011 into sendgrid:master May 16, 2017
@thinkingserious
Copy link
Contributor

Hello @nate-fr,

Thanks again for the PR!

We want to show our appreciation by sending you some swag. Could you please fill out this form so we can send it to you? Thanks!

Team SendGrid DX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: code review request requesting a community code review or review from Twilio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants