Update to .net 8 and cleanup some code #44
Annotations
10 warnings
build:
CleanAspCore.Api.Tests/Features/Employees/EmployeeControllerTests.cs#L44
Dereference of a possibly null reference.
|
build:
CleanAspCore.Api.Tests/Features/Employees/EmployeeControllerTests.cs#L45
Dereference of a possibly null reference.
|
build:
CleanAspCore.Api.Tests/Helpers/RentedDatabase.cs#L24
Change RentedDatabase.DisposeAsync() to call GC.SuppressFinalize(object). This will prevent derived types that introduce a finalizer from needing to re-implement 'IDisposable' to call it. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1816)
|
build:
CleanAspCore.Api.Tests/Helpers/TestWebApi.cs#L58
Change TestWebApi.DisposeAsync() to call GC.SuppressFinalize(object). This will prevent derived types that introduce a finalizer from needing to re-implement 'IDisposable' to call it. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1816)
|
build:
CleanAspCore.Api.Tests/Startup.cs#L21
Member 'RunWithoutSynchronizationContext' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822)
|
build:
CleanAspCore.Api.Tests/Features/Employees/EmployeeControllerTests.cs#L44
Dereference of a possibly null reference.
|
build:
CleanAspCore.Api.Tests/Features/Employees/EmployeeControllerTests.cs#L45
Dereference of a possibly null reference.
|
build:
CleanAspCore.Api.Tests/Helpers/RentedDatabase.cs#L24
Change RentedDatabase.DisposeAsync() to call GC.SuppressFinalize(object). This will prevent derived types that introduce a finalizer from needing to re-implement 'IDisposable' to call it. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1816)
|
build:
CleanAspCore.Api.Tests/Helpers/TestWebApi.cs#L58
Change TestWebApi.DisposeAsync() to call GC.SuppressFinalize(object). This will prevent derived types that introduce a finalizer from needing to re-implement 'IDisposable' to call it. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1816)
|
build:
CleanAspCore.Api.Tests/Startup.cs#L21
Member 'RunWithoutSynchronizationContext' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822)
|