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

Added unit tests for WebApi ServiceCollection and AuthenticationBuilder extensions. Minor fixes. #93

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

pmaytak
Copy link
Contributor

@pmaytak pmaytak commented Apr 10, 2020

Added unit tests for

  • WebApiAuthenticationBuilderExtensions
  • WebApiServiceCollectionExtensions

Note: I put them into one test class as the tests are pretty much the same.

@pmaytak pmaytak requested review from jmprieur and jennyf19 April 10, 2020 16:25
Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

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

TEST. 🐱

@pmaytak pmaytak marked this pull request as ready for review April 10, 2020 17:41
@@ -121,6 +122,8 @@ public static class WebApiServiceCollectionExtensions

services.Configure<JwtBearerOptions>(jwtBearerScheme, options =>
{
options.Events ??= new JwtBearerEvents();

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: spacing

Copy link
Contributor Author

@pmaytak pmaytak Apr 10, 2020

Choose a reason for hiding this comment

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

What do you mean? @jennyf19

Copy link
Collaborator

Choose a reason for hiding this comment

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

the space between ??=

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There shouldn't be one. It's compound operator.

Copy link
Member

Choose a reason for hiding this comment

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

Hah, never used this operator before. It's nice to see smth new :)

Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

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

:shipit:

@pmaytak pmaytak force-pushed the pmaytak/unitTests branch from 955f805 to 3f62ec4 Compare April 10, 2020 20:42
@pmaytak pmaytak force-pushed the pmaytak/unitTests branch from 3f62ec4 to 05c2b75 Compare April 10, 2020 20:47
@pmaytak pmaytak merged commit 7293921 into master Apr 10, 2020
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.

[Fundamentals] Increase test coverage for public api and internal methods
3 participants