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

Implement interface #57

Merged
merged 1 commit into from
Sep 28, 2018
Merged

Implement interface #57

merged 1 commit into from
Sep 28, 2018

Conversation

Titansmasher
Copy link

What problem does the pull request solve?

The NotificationClient did not implement the INotificationClient interface. Being unable to use an interface in the place of the NotificationClient makes unit testing rather painful, as we have to instead mock the IHttpClient.

Checklist

  • I’ve used the pull request template
  • I’ve written unit tests for these changes
    I dont feel this is applicable as no functional code has changed
  • I’ve update the documentation (in README.md, CHANGELOG.md and CONTRIBUTING.md)
    I am unsure if any doccumentation would need to change as the usage of the NotificationClient is unchanged
  • I’ve bumped the version number (in src/Notify/Notify.csproj)

@ghost
Copy link

ghost commented Sep 18, 2018

Can one of the admins verify this patch?

@quis
Copy link
Member

quis commented Sep 18, 2018

Hey @danny-may thanks for the contribution! I’ll get someone who knows more .NET than me to take a look at it.

@quis
Copy link
Member

quis commented Sep 18, 2018

@govuk-notify-jenkins test this please

Copy link

@karlbaker02 karlbaker02 left a comment

Choose a reason for hiding this comment

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

This PR looks absolutely sensible. Would it be possible to merge the commits into one and update the description with what you've written in the PR description? @danny-may

Thanks for taking the time to make this improvement 👍

@@ -3,7 +3,7 @@
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<TargetFrameworks>netstandard2.0;netcoreapp2.0;net462</TargetFrameworks>
<Version>2.2.0</Version>
<Version>2.2.1</Version>

Choose a reason for hiding this comment

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

This should be a minor update rather than a patch:

2.3.0

Copy link
Author

Choose a reason for hiding this comment

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

Updated

@Titansmasher
Copy link
Author

Titansmasher commented Sep 28, 2018

Im not sure how to merge the commits without re-doing the PR/branch. Is a squash merge not possible from your end?

EDIT: Never mind, I figured it out!
@karlbaker02 I think this is all ready

The NotificationClient class does not implement INotificationClient.
Being unable to use an interface in the place of the NotificationClient
makes unit testing rather painful, as we have to instead mock the
IHttpClient.

Updated version to 2.3.0
@quis
Copy link
Member

quis commented Sep 28, 2018

@govuk-notify-jenkins test this please

@quis
Copy link
Member

quis commented Sep 28, 2018

Hey @danny-may, @karlbaker02 thanks again for your work on this. Going to merge now…

@quis quis merged commit 9267eb0 into alphagov:master Sep 28, 2018
@Titansmasher
Copy link
Author

No problem, happy to help 😄

@Titansmasher Titansmasher mentioned this pull request Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants