Corrected link rendering for hosting inside an IIS application vdir#955
Merged
Conversation
maurei
approved these changes
Feb 23, 2021
bart-degreed
pushed a commit
that referenced
this pull request
Feb 25, 2021
…955) Corrected link rendering for hosting inside an IIS application virtual directory
bart-degreed
pushed a commit
that referenced
this pull request
Mar 3, 2021
…960) * Replaced null checks with argument guard * Added curlies on single-statement branches and loops * Normalize blank lines around SaveChangesAsync in tests * use const * Move types into matching files * Adapt namespaces to match with directory structure * Fixed inconsistencies in naming conventions * Remove redundant parenthesis * Fixed culture-specific string comparisons * Use newer syntax for dictionary initializers * Various additional cleanups * Manual code cleanups in preparation for reformat * Extract variable on errors in tests to reduce assertion line length * Hide decimal precision from tests * Rewrite ResponseStatusCode tests using Theory * Fixed naming inconsistencies in tests * Replace FindAsync usage for consistency with other tests * Added formatter directives on fakers * Added formatter directives on DbContext types * Added FirstWithIdAsync / FirstWithIdOrDefaultAsync to reduce line length on database queries in tests * Added formatting directives on long database queries in tests * Reduced line length for links assertions * Variable naming consistency * Break up long strings to steer formatter * Extract constant * cleanup method * Fixed naming conventions Resharper was set to auto-detect, making it ignore configured rules * Additional cleanup based on suggestions from https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ * Use helpers to prevent multiple line breaks in array and list initializers * Corrected link rendering for hosting inside an IIS application vdir (#955) Corrected link rendering for hosting inside an IIS application virtual directory * Update version from 4.0.3 to 4.0.4 * Marked types/members sealed/internal where non-breaking * Removed redundancies in code * remove unused tuple elements * Fixed spelling in comments * Added formatter directive to ErrorDocumentTests to prevent array chop * Added [UsedImplicitly] on DbContext classes to suppress suggestions like 'member can be private, set accessor is never used'etc. * Added [UsedImplicitly] on resource services, repositories, definitions and startups * Added [UsedImplicitly] on models * Use discard in empty property setters * Added missing setter * Addressed possible NullReferenceException warnings * Marked assertion methods as such, to suppress warning 'parameter is only used for precondition checks' Note that one suppression is needed, due to a bug in Resharper * Addressed possible multiple enumeration warnings * Suppressed warnings on non-readonly member access in GetHashCode, because these are assigned once at application startup by the resource graph builder and then are considered immutable. * extra: UsedImplicitly on models * Added [PublicAPI] on exposed types to suppress warnings like 'type/member can be made internal', 'type has no inheritors and can be marked sealed', 'member is never written to' etc. * Cleanup Startups * BenchmarkDotNet runners cannot be sealed * Suppress cases of unused TResource type parameter, because we register an open generic for them to enable different implementations per resource type. * Additional cleanup and annotations based on warnings and suggestions * AV1755: Async method name should end with [Task]Async * AV1739: Use underscores for unused lambda parameters * AV1568: Parameter value is overwritten in method body * AV1535: Block scope in case clauses * AV1522: Multiple assignments in single statement * AV1532: Avoid nested loops * AV1010: Member hides inherited member * AV1130: Use collection interface as return type * Fixed: Without the [CustomAssertion] attribute, Fluent Assertions would find the line that calls Subject.StatusCode.Should().Be() and treat the Subject variable as the subject-under-test (SUT). But by applying this attribute, it will ignore this invocation and instead find the SUT by looking for a call to Should().HaveStatusCode() and use the response variable instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #948.
Tested in IIS with the following setup:
