-
Notifications
You must be signed in to change notification settings - Fork 218
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TEST. 🐱
@@ -121,6 +122,8 @@ public static class WebApiServiceCollectionExtensions | |||
|
|||
services.Configure<JwtBearerOptions>(jwtBearerScheme, options => | |||
{ | |||
options.Events ??= new JwtBearerEvents(); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: spacing
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the space between ??=
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
955f805
to
3f62ec4
Compare
…er extensions. Minor fixes.
3f62ec4
to
05c2b75
Compare
Added unit tests for
Note: I put them into one test class as the tests are pretty much the same.