From 51d2e4916f827a09f84bedd05f9be99cd5fde298 Mon Sep 17 00:00:00 2001
From: Bart Koelman <10324372+bkoelman@users.noreply.github.com>
Date: Thu, 26 Sep 2024 06:47:22 +0200
Subject: [PATCH] Update formatting rules to place call to base in primary
constructor on separate line
---
JsonApiDotNetCore.sln.DotSettings | 1 +
.../Controllers/OperationsController.cs | 4 +--
.../DeleteOneToOneStatementBuilder.cs | 3 +-
.../DeleteResourceStatementBuilder.cs | 3 +-
.../Builders/InsertStatementBuilder.cs | 3 +-
.../UpdateClearOneToOneStatementBuilder.cs | 3 +-
.../UpdateResourceStatementBuilder.cs | 3 +-
.../DataModel/FromEntitiesDataModelService.cs | 3 +-
.../Generators/ParameterGenerator.cs | 3 +-
.../Generators/TableAliasGenerator.cs | 3 +-
.../TreeNodes/ColumnInSelectNode.cs | 4 +--
.../TreeNodes/ColumnInTableNode.cs | 3 +-
.../TreeNodes/CountSelectorNode.cs | 3 +-
.../TranslationToSql/TreeNodes/FromNode.cs | 3 +-
.../TreeNodes/OneSelectorNode.cs | 3 +-
.../GettingStarted/Data/SampleDbContext.cs | 3 +-
.../Controllers/OperationsController.cs | 4 +--
.../Data/AppDbContext.cs | 3 +-
.../Definitions/TodoItemDefinition.cs | 3 +-
.../MultiDbContextExample/Data/DbContextA.cs | 3 +-
.../MultiDbContextExample/Data/DbContextB.cs | 3 +-
.../JsonApiOperationsController.cs | 4 +--
...annotClearRequiredRelationshipException.cs | 4 +--
.../Errors/DuplicateLocalIdValueException.cs | 11 +++---
.../Errors/FailedOperationException.cs | 4 +--
.../IncompatibleLocalIdTypeException.cs | 4 +--
.../Errors/InvalidConfigurationException.cs | 3 +-
.../Errors/InvalidModelStateException.cs | 8 ++---
.../Errors/InvalidQueryException.cs | 11 +++---
.../Errors/InvalidRequestBodyException.cs | 35 ++++++++++---------
.../Errors/LocalIdSingleOperationException.cs | 11 +++---
.../MissingTransactionSupportException.cs | 11 +++---
.../NonParticipatingTransactionException.cs | 11 +++---
.../Errors/RelationshipNotFoundException.cs | 11 +++---
.../Errors/ResourceAlreadyExistsException.cs | 11 +++---
.../Errors/ResourceNotFoundException.cs | 11 +++---
.../Errors/RouteNotAvailableException.cs | 11 +++---
.../Errors/UnknownLocalIdValueException.cs | 11 +++---
.../FieldChains/FieldChainFormatException.cs | 3 +-
.../FieldChains/PatternFormatException.cs | 3 +-
.../Repositories/DataStoreUpdateException.cs | 3 +-
.../PrivateResourceDefinition.cs | 3 +-
test/DiscoveryTests/PrivateResourceService.cs | 5 +--
.../Archiving/TelevisionDbContext.cs | 3 +-
.../CreateMusicTrackOperationsController.cs | 4 +--
.../AtomicOperations/OperationsController.cs | 4 +--
.../AtomicOperations/OperationsDbContext.cs | 3 +-
.../Transactions/ExtraDbContext.cs | 3 +-
.../Scopes/OperationsController.cs | 4 +--
.../Authorization/Scopes/ScopesDbContext.cs | 3 +-
.../IntegrationTests/Blobs/BlobDbContext.cs | 3 +-
.../CompositeKeys/CompositeDbContext.cs | 3 +-
.../OperationsController.cs | 4 +--
.../ContentNegotiation/PolicyDbContext.cs | 3 +-
.../ActionResultDbContext.cs | 3 +-
.../CustomRoutes/CustomRouteDbContext.cs | 3 +-
.../EagerLoading/EagerLoadingDbContext.cs | 3 +-
.../AlternateExceptionHandler.cs | 3 +-
...umerArticleIsNoLongerAvailableException.cs | 4 +--
.../ConsumerArticleService.cs | 5 +--
.../ExceptionHandling/ErrorDbContext.cs | 3 +-
.../HostingInIIS/HostingDbContext.cs | 3 +-
.../IdObfuscation/ObfuscationDbContext.cs | 3 +-
.../ModelState/ModelStateDbContext.cs | 3 +-
.../RequestBody/WorkflowDbContext.cs | 3 +-
.../RequestBody/WorkflowDefinition.cs | 3 +-
.../IntegrationTests/Links/LinksDbContext.cs | 3 +-
.../Logging/LoggingDbContext.cs | 3 +-
.../IntegrationTests/Meta/MetaDbContext.cs | 3 +-
.../FireForgetDbContext.cs | 3 +-
.../OutboxDbContext.cs | 3 +-
.../MultiTenancy/MultiTenancyDbContext.cs | 3 +-
.../NamingConventions/NamingDbContext.cs | 3 +-
.../NonJsonApiControllers/EmptyDbContext.cs | 3 +-
.../NonJsonApiControllers/KnownDbContext.cs | 3 +-
.../IsUpperCase/IsUpperCaseFilterParser.cs | 3 +-
.../StringLength/LengthFilterParser.cs | 3 +-
.../CustomFunctions/Sum/SumFilterParser.cs | 3 +-
.../TimeOffset/TimeOffsetFilterParser.cs | 3 +-
.../QueryStrings/Filtering/FilterDbContext.cs | 3 +-
.../QueryStrings/QueryStringDbContext.cs | 3 +-
.../ResultCapturingRepository.cs | 5 +--
.../Creating/AssignIdToRgbColorDefinition.cs | 3 +-
.../ReadWrite/ReadWriteDbContext.cs | 3 +-
.../RemoveFromToManyRelationshipTests.cs | 3 +-
.../DefaultBehaviorDbContext.cs | 3 +-
.../Reading/UniverseDbContext.cs | 3 +-
.../Serialization/SerializationDbContext.cs | 3 +-
.../ChangeTracking/ChangeTrackingDbContext.cs | 3 +-
.../ResourceInheritanceDbContext.cs | 3 +-
.../TablePerConcreteTypeDbContext.cs | 3 +-
.../TablePerHierarchyDbContext.cs | 3 +-
.../TablePerType/TablePerTypeDbContext.cs | 3 +-
.../RestrictionDbContext.cs | 3 +-
.../Serialization/SerializationDbContext.cs | 3 +-
.../SoftDeletion/SoftDeletionDbContext.cs | 3 +-
.../ZeroKeys/ZeroKeyDbContext.cs | 3 +-
.../ServiceCollectionExtensionsTests.cs | 3 +-
.../QueryStringParameters/FilterParseTests.cs | 6 ++--
.../CreateSortExpressionFromLambdaTests.cs | 3 +-
test/TestBuildingBlocks/TestableDbContext.cs | 3 +-
101 files changed, 264 insertions(+), 175 deletions(-)
diff --git a/JsonApiDotNetCore.sln.DotSettings b/JsonApiDotNetCore.sln.DotSettings
index 399be60883..f861fcbedb 100644
--- a/JsonApiDotNetCore.sln.DotSettings
+++ b/JsonApiDotNetCore.sln.DotSettings
@@ -137,6 +137,7 @@ JsonApiDotNetCore.ArgumentGuard.NotNull($EXPR$);
NEVER
False
NEVER
+ False
False
False
NEVER
diff --git a/src/Examples/DapperExample/Controllers/OperationsController.cs b/src/Examples/DapperExample/Controllers/OperationsController.cs
index 2b9daf492f..ed15c6e9a2 100644
--- a/src/Examples/DapperExample/Controllers/OperationsController.cs
+++ b/src/Examples/DapperExample/Controllers/OperationsController.cs
@@ -8,5 +8,5 @@ namespace DapperExample.Controllers;
public sealed class OperationsController(
IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor, IJsonApiRequest request,
- ITargetedFields targetedFields, IAtomicOperationFilter operationFilter) : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor,
- request, targetedFields, operationFilter);
+ ITargetedFields targetedFields, IAtomicOperationFilter operationFilter)
+ : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields, operationFilter);
diff --git a/src/Examples/DapperExample/TranslationToSql/Builders/DeleteOneToOneStatementBuilder.cs b/src/Examples/DapperExample/TranslationToSql/Builders/DeleteOneToOneStatementBuilder.cs
index 74484ac1dc..24be003a0a 100644
--- a/src/Examples/DapperExample/TranslationToSql/Builders/DeleteOneToOneStatementBuilder.cs
+++ b/src/Examples/DapperExample/TranslationToSql/Builders/DeleteOneToOneStatementBuilder.cs
@@ -6,7 +6,8 @@
namespace DapperExample.TranslationToSql.Builders;
-internal sealed class DeleteOneToOneStatementBuilder(IDataModelService dataModelService) : StatementBuilder(dataModelService)
+internal sealed class DeleteOneToOneStatementBuilder(IDataModelService dataModelService)
+ : StatementBuilder(dataModelService)
{
public DeleteNode Build(ResourceType resourceType, string whereColumnName, object? whereValue)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/Builders/DeleteResourceStatementBuilder.cs b/src/Examples/DapperExample/TranslationToSql/Builders/DeleteResourceStatementBuilder.cs
index 7d39e939af..2e4779e334 100644
--- a/src/Examples/DapperExample/TranslationToSql/Builders/DeleteResourceStatementBuilder.cs
+++ b/src/Examples/DapperExample/TranslationToSql/Builders/DeleteResourceStatementBuilder.cs
@@ -7,7 +7,8 @@
namespace DapperExample.TranslationToSql.Builders;
-internal sealed class DeleteResourceStatementBuilder(IDataModelService dataModelService) : StatementBuilder(dataModelService)
+internal sealed class DeleteResourceStatementBuilder(IDataModelService dataModelService)
+ : StatementBuilder(dataModelService)
{
public DeleteNode Build(ResourceType resourceType, params object[] idValues)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/Builders/InsertStatementBuilder.cs b/src/Examples/DapperExample/TranslationToSql/Builders/InsertStatementBuilder.cs
index 8701269a8a..7a12ec5acd 100644
--- a/src/Examples/DapperExample/TranslationToSql/Builders/InsertStatementBuilder.cs
+++ b/src/Examples/DapperExample/TranslationToSql/Builders/InsertStatementBuilder.cs
@@ -7,7 +7,8 @@
namespace DapperExample.TranslationToSql.Builders;
-internal sealed class InsertStatementBuilder(IDataModelService dataModelService) : StatementBuilder(dataModelService)
+internal sealed class InsertStatementBuilder(IDataModelService dataModelService)
+ : StatementBuilder(dataModelService)
{
public InsertNode Build(ResourceType resourceType, IReadOnlyDictionary columnsToSet)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/Builders/UpdateClearOneToOneStatementBuilder.cs b/src/Examples/DapperExample/TranslationToSql/Builders/UpdateClearOneToOneStatementBuilder.cs
index 9d76361bab..6a8c33a4e0 100644
--- a/src/Examples/DapperExample/TranslationToSql/Builders/UpdateClearOneToOneStatementBuilder.cs
+++ b/src/Examples/DapperExample/TranslationToSql/Builders/UpdateClearOneToOneStatementBuilder.cs
@@ -6,7 +6,8 @@
namespace DapperExample.TranslationToSql.Builders;
-internal sealed class UpdateClearOneToOneStatementBuilder(IDataModelService dataModelService) : StatementBuilder(dataModelService)
+internal sealed class UpdateClearOneToOneStatementBuilder(IDataModelService dataModelService)
+ : StatementBuilder(dataModelService)
{
public UpdateNode Build(ResourceType resourceType, string setColumnName, string whereColumnName, object? whereValue)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/Builders/UpdateResourceStatementBuilder.cs b/src/Examples/DapperExample/TranslationToSql/Builders/UpdateResourceStatementBuilder.cs
index 5941ce3e29..a745747a61 100644
--- a/src/Examples/DapperExample/TranslationToSql/Builders/UpdateResourceStatementBuilder.cs
+++ b/src/Examples/DapperExample/TranslationToSql/Builders/UpdateResourceStatementBuilder.cs
@@ -7,7 +7,8 @@
namespace DapperExample.TranslationToSql.Builders;
-internal sealed class UpdateResourceStatementBuilder(IDataModelService dataModelService) : StatementBuilder(dataModelService)
+internal sealed class UpdateResourceStatementBuilder(IDataModelService dataModelService)
+ : StatementBuilder(dataModelService)
{
public UpdateNode Build(ResourceType resourceType, IReadOnlyDictionary columnsToUpdate, params object[] idValues)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/DataModel/FromEntitiesDataModelService.cs b/src/Examples/DapperExample/TranslationToSql/DataModel/FromEntitiesDataModelService.cs
index 711ad8517c..53bf5e4ae4 100644
--- a/src/Examples/DapperExample/TranslationToSql/DataModel/FromEntitiesDataModelService.cs
+++ b/src/Examples/DapperExample/TranslationToSql/DataModel/FromEntitiesDataModelService.cs
@@ -12,7 +12,8 @@ namespace DapperExample.TranslationToSql.DataModel;
///
/// Derives foreign keys and connection strings from an existing Entity Framework Core model.
///
-public sealed class FromEntitiesDataModelService(IResourceGraph resourceGraph) : BaseDataModelService(resourceGraph)
+public sealed class FromEntitiesDataModelService(IResourceGraph resourceGraph)
+ : BaseDataModelService(resourceGraph)
{
private readonly Dictionary _foreignKeysByRelationship = [];
private readonly Dictionary _columnNullabilityPerAttribute = [];
diff --git a/src/Examples/DapperExample/TranslationToSql/Generators/ParameterGenerator.cs b/src/Examples/DapperExample/TranslationToSql/Generators/ParameterGenerator.cs
index aaa328e68f..577f1d2e3e 100644
--- a/src/Examples/DapperExample/TranslationToSql/Generators/ParameterGenerator.cs
+++ b/src/Examples/DapperExample/TranslationToSql/Generators/ParameterGenerator.cs
@@ -20,5 +20,6 @@ public void Reset()
_nameGenerator.Reset();
}
- private sealed class ParameterNameGenerator() : UniqueNameGenerator("@p");
+ private sealed class ParameterNameGenerator()
+ : UniqueNameGenerator("@p");
}
diff --git a/src/Examples/DapperExample/TranslationToSql/Generators/TableAliasGenerator.cs b/src/Examples/DapperExample/TranslationToSql/Generators/TableAliasGenerator.cs
index a63bfdc01a..ff302caf10 100644
--- a/src/Examples/DapperExample/TranslationToSql/Generators/TableAliasGenerator.cs
+++ b/src/Examples/DapperExample/TranslationToSql/Generators/TableAliasGenerator.cs
@@ -3,4 +3,5 @@ namespace DapperExample.TranslationToSql.Generators;
///
/// Generates a SQL table alias with a unique name.
///
-internal sealed class TableAliasGenerator() : UniqueNameGenerator("t");
+internal sealed class TableAliasGenerator()
+ : UniqueNameGenerator("t");
diff --git a/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInSelectNode.cs b/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInSelectNode.cs
index 2be0561011..88625104d2 100644
--- a/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInSelectNode.cs
+++ b/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInSelectNode.cs
@@ -10,8 +10,8 @@ namespace DapperExample.TranslationToSql.TreeNodes;
/// SELECT t2.Id AS Id0 FROM (SELECT t1.Id FROM Users AS t1) AS t2
/// ]]>.
///
-internal sealed class ColumnInSelectNode(ColumnSelectorNode selector, string? tableAlias) : ColumnNode(GetColumnName(selector), selector.Column.Type,
- tableAlias)
+internal sealed class ColumnInSelectNode(ColumnSelectorNode selector, string? tableAlias)
+ : ColumnNode(GetColumnName(selector), selector.Column.Type, tableAlias)
{
public ColumnSelectorNode Selector { get; } = selector;
diff --git a/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInTableNode.cs b/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInTableNode.cs
index cd605e72a4..da29ed97fc 100644
--- a/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInTableNode.cs
+++ b/src/Examples/DapperExample/TranslationToSql/TreeNodes/ColumnInTableNode.cs
@@ -8,7 +8,8 @@ namespace DapperExample.TranslationToSql.TreeNodes;
/// FROM Users AS t1
/// ]]>.
///
-internal sealed class ColumnInTableNode(string name, ColumnType type, string? tableAlias) : ColumnNode(name, type, tableAlias)
+internal sealed class ColumnInTableNode(string name, ColumnType type, string? tableAlias)
+ : ColumnNode(name, type, tableAlias)
{
public override TResult Accept(SqlTreeNodeVisitor visitor, TArgument argument)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/TreeNodes/CountSelectorNode.cs b/src/Examples/DapperExample/TranslationToSql/TreeNodes/CountSelectorNode.cs
index d0b9e18ca2..d344659393 100644
--- a/src/Examples/DapperExample/TranslationToSql/TreeNodes/CountSelectorNode.cs
+++ b/src/Examples/DapperExample/TranslationToSql/TreeNodes/CountSelectorNode.cs
@@ -8,7 +8,8 @@ namespace DapperExample.TranslationToSql.TreeNodes;
/// SELECT COUNT(*) FROM Users
/// ]]>.
///
-internal sealed class CountSelectorNode(string? alias) : SelectorNode(alias)
+internal sealed class CountSelectorNode(string? alias)
+ : SelectorNode(alias)
{
public override TResult Accept(SqlTreeNodeVisitor visitor, TArgument argument)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/TreeNodes/FromNode.cs b/src/Examples/DapperExample/TranslationToSql/TreeNodes/FromNode.cs
index 3d29636212..9e39a9d516 100644
--- a/src/Examples/DapperExample/TranslationToSql/TreeNodes/FromNode.cs
+++ b/src/Examples/DapperExample/TranslationToSql/TreeNodes/FromNode.cs
@@ -5,7 +5,8 @@ namespace DapperExample.TranslationToSql.TreeNodes;
/// FROM Customers AS t1
/// ]]>.
///
-internal sealed class FromNode(TableSourceNode source) : TableAccessorNode(source)
+internal sealed class FromNode(TableSourceNode source)
+ : TableAccessorNode(source)
{
public override TResult Accept(SqlTreeNodeVisitor visitor, TArgument argument)
{
diff --git a/src/Examples/DapperExample/TranslationToSql/TreeNodes/OneSelectorNode.cs b/src/Examples/DapperExample/TranslationToSql/TreeNodes/OneSelectorNode.cs
index a9c05301a7..ac9e75d44d 100644
--- a/src/Examples/DapperExample/TranslationToSql/TreeNodes/OneSelectorNode.cs
+++ b/src/Examples/DapperExample/TranslationToSql/TreeNodes/OneSelectorNode.cs
@@ -8,7 +8,8 @@ namespace DapperExample.TranslationToSql.TreeNodes;
/// SELECT 1 FROM Users
/// ]]>.
///
-internal sealed class OneSelectorNode(string? alias) : SelectorNode(alias)
+internal sealed class OneSelectorNode(string? alias)
+ : SelectorNode(alias)
{
public override TResult Accept(SqlTreeNodeVisitor visitor, TArgument argument)
{
diff --git a/src/Examples/GettingStarted/Data/SampleDbContext.cs b/src/Examples/GettingStarted/Data/SampleDbContext.cs
index 5e65f8466e..cd8b16515d 100644
--- a/src/Examples/GettingStarted/Data/SampleDbContext.cs
+++ b/src/Examples/GettingStarted/Data/SampleDbContext.cs
@@ -5,7 +5,8 @@
namespace GettingStarted.Data;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public class SampleDbContext(DbContextOptions options) : DbContext(options)
+public class SampleDbContext(DbContextOptions options)
+ : DbContext(options)
{
public DbSet Books => Set();
}
diff --git a/src/Examples/JsonApiDotNetCoreExample/Controllers/OperationsController.cs b/src/Examples/JsonApiDotNetCoreExample/Controllers/OperationsController.cs
index 9d8d944967..a5cb2ef2e3 100644
--- a/src/Examples/JsonApiDotNetCoreExample/Controllers/OperationsController.cs
+++ b/src/Examples/JsonApiDotNetCoreExample/Controllers/OperationsController.cs
@@ -8,5 +8,5 @@ namespace JsonApiDotNetCoreExample.Controllers;
public sealed class OperationsController(
IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor, IJsonApiRequest request,
- ITargetedFields targetedFields, IAtomicOperationFilter operationFilter) : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor,
- request, targetedFields, operationFilter);
+ ITargetedFields targetedFields, IAtomicOperationFilter operationFilter)
+ : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields, operationFilter);
diff --git a/src/Examples/JsonApiDotNetCoreExample/Data/AppDbContext.cs b/src/Examples/JsonApiDotNetCoreExample/Data/AppDbContext.cs
index e7864a42f6..f5c7e8e401 100644
--- a/src/Examples/JsonApiDotNetCoreExample/Data/AppDbContext.cs
+++ b/src/Examples/JsonApiDotNetCoreExample/Data/AppDbContext.cs
@@ -8,7 +8,8 @@
namespace JsonApiDotNetCoreExample.Data;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class AppDbContext(DbContextOptions options) : DbContext(options)
+public sealed class AppDbContext(DbContextOptions options)
+ : DbContext(options)
{
public DbSet TodoItems => Set();
diff --git a/src/Examples/JsonApiDotNetCoreExample/Definitions/TodoItemDefinition.cs b/src/Examples/JsonApiDotNetCoreExample/Definitions/TodoItemDefinition.cs
index d94fffa85b..cd85ccd696 100644
--- a/src/Examples/JsonApiDotNetCoreExample/Definitions/TodoItemDefinition.cs
+++ b/src/Examples/JsonApiDotNetCoreExample/Definitions/TodoItemDefinition.cs
@@ -19,7 +19,8 @@ ISystemClock systemClock
#else
TimeProvider timeProvider
#endif
-) : JsonApiResourceDefinition(resourceGraph)
+)
+ : JsonApiResourceDefinition(resourceGraph)
{
#if NET6_0
private readonly Func _getUtcNow = () => systemClock.UtcNow;
diff --git a/src/Examples/MultiDbContextExample/Data/DbContextA.cs b/src/Examples/MultiDbContextExample/Data/DbContextA.cs
index 4efd10ea7b..32f6197600 100644
--- a/src/Examples/MultiDbContextExample/Data/DbContextA.cs
+++ b/src/Examples/MultiDbContextExample/Data/DbContextA.cs
@@ -5,7 +5,8 @@
namespace MultiDbContextExample.Data;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class DbContextA(DbContextOptions options) : DbContext(options)
+public sealed class DbContextA(DbContextOptions options)
+ : DbContext(options)
{
public DbSet ResourceAs => Set();
}
diff --git a/src/Examples/MultiDbContextExample/Data/DbContextB.cs b/src/Examples/MultiDbContextExample/Data/DbContextB.cs
index faf50c0902..8759e28e91 100644
--- a/src/Examples/MultiDbContextExample/Data/DbContextB.cs
+++ b/src/Examples/MultiDbContextExample/Data/DbContextB.cs
@@ -5,7 +5,8 @@
namespace MultiDbContextExample.Data;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class DbContextB(DbContextOptions options) : DbContext(options)
+public sealed class DbContextB(DbContextOptions options)
+ : DbContext(options)
{
public DbSet ResourceBs => Set();
}
diff --git a/src/JsonApiDotNetCore/Controllers/JsonApiOperationsController.cs b/src/JsonApiDotNetCore/Controllers/JsonApiOperationsController.cs
index 168800b571..90fec3b9f3 100644
--- a/src/JsonApiDotNetCore/Controllers/JsonApiOperationsController.cs
+++ b/src/JsonApiDotNetCore/Controllers/JsonApiOperationsController.cs
@@ -14,8 +14,8 @@ namespace JsonApiDotNetCore.Controllers;
///
public abstract class JsonApiOperationsController(
IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor, IJsonApiRequest request,
- ITargetedFields targetedFields, IAtomicOperationFilter operationFilter) : BaseJsonApiOperationsController(options, resourceGraph, loggerFactory, processor,
- request, targetedFields, operationFilter)
+ ITargetedFields targetedFields, IAtomicOperationFilter operationFilter)
+ : BaseJsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields, operationFilter)
{
///
[HttpPost]
diff --git a/src/JsonApiDotNetCore/Errors/CannotClearRequiredRelationshipException.cs b/src/JsonApiDotNetCore/Errors/CannotClearRequiredRelationshipException.cs
index 3ec95be11a..0a9db40c04 100644
--- a/src/JsonApiDotNetCore/Errors/CannotClearRequiredRelationshipException.cs
+++ b/src/JsonApiDotNetCore/Errors/CannotClearRequiredRelationshipException.cs
@@ -8,8 +8,8 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when a required relationship is cleared.
///
[PublicAPI]
-public sealed class CannotClearRequiredRelationshipException(string relationshipName, string resourceType) : JsonApiException(
- new ErrorObject(HttpStatusCode.BadRequest)
+public sealed class CannotClearRequiredRelationshipException(string relationshipName, string resourceType)
+ : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
{
Title = "Failed to clear a required relationship.",
Detail = $"The relationship '{relationshipName}' on resource type '{resourceType}' cannot be cleared because it is a required relationship."
diff --git a/src/JsonApiDotNetCore/Errors/DuplicateLocalIdValueException.cs b/src/JsonApiDotNetCore/Errors/DuplicateLocalIdValueException.cs
index 07ac377ae1..689529356b 100644
--- a/src/JsonApiDotNetCore/Errors/DuplicateLocalIdValueException.cs
+++ b/src/JsonApiDotNetCore/Errors/DuplicateLocalIdValueException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when assigning a local ID that was already assigned in an earlier operation.
///
[PublicAPI]
-public sealed class DuplicateLocalIdValueException(string localId) : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
-{
- Title = "Another local ID with the same name is already defined at this point.",
- Detail = $"Another local ID with name '{localId}' is already defined at this point."
-});
+public sealed class DuplicateLocalIdValueException(string localId)
+ : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
+ {
+ Title = "Another local ID with the same name is already defined at this point.",
+ Detail = $"Another local ID with name '{localId}' is already defined at this point."
+ });
diff --git a/src/JsonApiDotNetCore/Errors/FailedOperationException.cs b/src/JsonApiDotNetCore/Errors/FailedOperationException.cs
index a6b970bcce..53bc2e1e5c 100644
--- a/src/JsonApiDotNetCore/Errors/FailedOperationException.cs
+++ b/src/JsonApiDotNetCore/Errors/FailedOperationException.cs
@@ -8,8 +8,8 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when an operation in an atomic:operations request failed to be processed for unknown reasons.
///
[PublicAPI]
-public sealed class FailedOperationException(int operationIndex, Exception innerException) : JsonApiException(
- new ErrorObject(HttpStatusCode.InternalServerError)
+public sealed class FailedOperationException(int operationIndex, Exception innerException)
+ : JsonApiException(new ErrorObject(HttpStatusCode.InternalServerError)
{
Title = "An unhandled error occurred while processing an operation in this request.",
Detail = innerException.Message,
diff --git a/src/JsonApiDotNetCore/Errors/IncompatibleLocalIdTypeException.cs b/src/JsonApiDotNetCore/Errors/IncompatibleLocalIdTypeException.cs
index e893f04f00..0e6bfab8cb 100644
--- a/src/JsonApiDotNetCore/Errors/IncompatibleLocalIdTypeException.cs
+++ b/src/JsonApiDotNetCore/Errors/IncompatibleLocalIdTypeException.cs
@@ -8,8 +8,8 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when referencing a local ID that was assigned to a different resource type.
///
[PublicAPI]
-public sealed class IncompatibleLocalIdTypeException(string localId, string declaredType, string currentType) : JsonApiException(
- new ErrorObject(HttpStatusCode.BadRequest)
+public sealed class IncompatibleLocalIdTypeException(string localId, string declaredType, string currentType)
+ : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
{
Title = "Incompatible type in Local ID usage.",
Detail = $"Local ID '{localId}' belongs to resource type '{declaredType}' instead of '{currentType}'."
diff --git a/src/JsonApiDotNetCore/Errors/InvalidConfigurationException.cs b/src/JsonApiDotNetCore/Errors/InvalidConfigurationException.cs
index 0099e57c79..5e659bfc05 100644
--- a/src/JsonApiDotNetCore/Errors/InvalidConfigurationException.cs
+++ b/src/JsonApiDotNetCore/Errors/InvalidConfigurationException.cs
@@ -6,4 +6,5 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when configured usage of this library is invalid.
///
[PublicAPI]
-public sealed class InvalidConfigurationException(string message, Exception? innerException = null) : Exception(message, innerException);
+public sealed class InvalidConfigurationException(string message, Exception? innerException = null)
+ : Exception(message, innerException);
diff --git a/src/JsonApiDotNetCore/Errors/InvalidModelStateException.cs b/src/JsonApiDotNetCore/Errors/InvalidModelStateException.cs
index 478553f16b..d55243e301 100644
--- a/src/JsonApiDotNetCore/Errors/InvalidModelStateException.cs
+++ b/src/JsonApiDotNetCore/Errors/InvalidModelStateException.cs
@@ -17,8 +17,8 @@ namespace JsonApiDotNetCore.Errors;
[PublicAPI]
public sealed class InvalidModelStateException(
IReadOnlyDictionary modelState, Type modelType, bool includeExceptionStackTraceInErrors, IResourceGraph resourceGraph,
- Func? getCollectionElementTypeCallback = null) : JsonApiException(FromModelStateDictionary(modelState, modelType, resourceGraph,
- includeExceptionStackTraceInErrors, getCollectionElementTypeCallback))
+ Func? getCollectionElementTypeCallback = null)
+ : JsonApiException(FromModelStateDictionary(modelState, modelType, resourceGraph, includeExceptionStackTraceInErrors, getCollectionElementTypeCallback))
{
private static List FromModelStateDictionary(IReadOnlyDictionary modelState, Type modelType,
IResourceGraph resourceGraph, bool includeExceptionStackTraceInErrors, Func? getCollectionElementTypeCallback)
@@ -316,8 +316,8 @@ private static ModelStateKeySegment CreateSegment(Type modelType, string key, bo
///
private sealed class ArrayIndexerSegment(
int arrayIndex, Type modelType, bool isInComplexType, string nextKey, string? sourcePointer, ModelStateKeySegment? parent,
- Func? getCollectionElementTypeCallback) : ModelStateKeySegment(modelType, isInComplexType, nextKey, sourcePointer, parent,
- getCollectionElementTypeCallback)
+ Func? getCollectionElementTypeCallback)
+ : ModelStateKeySegment(modelType, isInComplexType, nextKey, sourcePointer, parent, getCollectionElementTypeCallback)
{
private static readonly CollectionConverter CollectionConverter = new();
diff --git a/src/JsonApiDotNetCore/Errors/InvalidQueryException.cs b/src/JsonApiDotNetCore/Errors/InvalidQueryException.cs
index 76ebd91461..36ae294140 100644
--- a/src/JsonApiDotNetCore/Errors/InvalidQueryException.cs
+++ b/src/JsonApiDotNetCore/Errors/InvalidQueryException.cs
@@ -9,8 +9,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when translating a to Entity Framework Core fails.
///
[PublicAPI]
-public sealed class InvalidQueryException(string reason, Exception? innerException) : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
-{
- Title = reason,
- Detail = innerException?.Message
-}, innerException);
+public sealed class InvalidQueryException(string reason, Exception? innerException)
+ : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
+ {
+ Title = reason,
+ Detail = innerException?.Message
+ }, innerException);
diff --git a/src/JsonApiDotNetCore/Errors/InvalidRequestBodyException.cs b/src/JsonApiDotNetCore/Errors/InvalidRequestBodyException.cs
index 0b667d532e..6e873eb388 100644
--- a/src/JsonApiDotNetCore/Errors/InvalidRequestBodyException.cs
+++ b/src/JsonApiDotNetCore/Errors/InvalidRequestBodyException.cs
@@ -12,20 +12,21 @@ namespace JsonApiDotNetCore.Errors;
[PublicAPI]
public sealed class InvalidRequestBodyException(
string? requestBody, string? genericMessage, string? specificMessage, string? sourcePointer, HttpStatusCode? alternativeStatusCode = null,
- Exception? innerException = null) : JsonApiException(new ErrorObject(alternativeStatusCode ?? HttpStatusCode.UnprocessableEntity)
-{
- Title = genericMessage != null ? $"Failed to deserialize request body: {genericMessage}" : "Failed to deserialize request body.",
- Detail = specificMessage,
- Source = sourcePointer == null
- ? null
- : new ErrorSource
- {
- Pointer = sourcePointer
- },
- Meta = string.IsNullOrEmpty(requestBody)
- ? null
- : new Dictionary
- {
- ["RequestBody"] = requestBody
- }
-}, innerException);
+ Exception? innerException = null)
+ : JsonApiException(new ErrorObject(alternativeStatusCode ?? HttpStatusCode.UnprocessableEntity)
+ {
+ Title = genericMessage != null ? $"Failed to deserialize request body: {genericMessage}" : "Failed to deserialize request body.",
+ Detail = specificMessage,
+ Source = sourcePointer == null
+ ? null
+ : new ErrorSource
+ {
+ Pointer = sourcePointer
+ },
+ Meta = string.IsNullOrEmpty(requestBody)
+ ? null
+ : new Dictionary
+ {
+ ["RequestBody"] = requestBody
+ }
+ }, innerException);
diff --git a/src/JsonApiDotNetCore/Errors/LocalIdSingleOperationException.cs b/src/JsonApiDotNetCore/Errors/LocalIdSingleOperationException.cs
index e96f78672f..44ca7ecc4c 100644
--- a/src/JsonApiDotNetCore/Errors/LocalIdSingleOperationException.cs
+++ b/src/JsonApiDotNetCore/Errors/LocalIdSingleOperationException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when assigning and referencing a local ID within the same operation.
///
[PublicAPI]
-public sealed class LocalIdSingleOperationException(string localId) : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
-{
- Title = "Local ID cannot be both defined and used within the same operation.",
- Detail = $"Local ID '{localId}' cannot be both defined and used within the same operation."
-});
+public sealed class LocalIdSingleOperationException(string localId)
+ : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
+ {
+ Title = "Local ID cannot be both defined and used within the same operation.",
+ Detail = $"Local ID '{localId}' cannot be both defined and used within the same operation."
+ });
diff --git a/src/JsonApiDotNetCore/Errors/MissingTransactionSupportException.cs b/src/JsonApiDotNetCore/Errors/MissingTransactionSupportException.cs
index e682a5fac2..c8b182ad53 100644
--- a/src/JsonApiDotNetCore/Errors/MissingTransactionSupportException.cs
+++ b/src/JsonApiDotNetCore/Errors/MissingTransactionSupportException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when accessing a repository that does not support transactions during an atomic:operations request.
///
[PublicAPI]
-public sealed class MissingTransactionSupportException(string resourceType) : JsonApiException(new ErrorObject(HttpStatusCode.UnprocessableEntity)
-{
- Title = "Unsupported resource type in atomic:operations request.",
- Detail = $"Operations on resources of type '{resourceType}' cannot be used because transaction support is unavailable."
-});
+public sealed class MissingTransactionSupportException(string resourceType)
+ : JsonApiException(new ErrorObject(HttpStatusCode.UnprocessableEntity)
+ {
+ Title = "Unsupported resource type in atomic:operations request.",
+ Detail = $"Operations on resources of type '{resourceType}' cannot be used because transaction support is unavailable."
+ });
diff --git a/src/JsonApiDotNetCore/Errors/NonParticipatingTransactionException.cs b/src/JsonApiDotNetCore/Errors/NonParticipatingTransactionException.cs
index b4855e27ff..24b8634f9e 100644
--- a/src/JsonApiDotNetCore/Errors/NonParticipatingTransactionException.cs
+++ b/src/JsonApiDotNetCore/Errors/NonParticipatingTransactionException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when a repository does not participate in the overarching transaction during an atomic:operations request.
///
[PublicAPI]
-public sealed class NonParticipatingTransactionException() : JsonApiException(new ErrorObject(HttpStatusCode.UnprocessableEntity)
-{
- Title = "Unsupported combination of resource types in atomic:operations request.",
- Detail = "All operations need to participate in a single shared transaction, which is not the case for this request."
-});
+public sealed class NonParticipatingTransactionException()
+ : JsonApiException(new ErrorObject(HttpStatusCode.UnprocessableEntity)
+ {
+ Title = "Unsupported combination of resource types in atomic:operations request.",
+ Detail = "All operations need to participate in a single shared transaction, which is not the case for this request."
+ });
diff --git a/src/JsonApiDotNetCore/Errors/RelationshipNotFoundException.cs b/src/JsonApiDotNetCore/Errors/RelationshipNotFoundException.cs
index 11a72f803f..7fc5c92f66 100644
--- a/src/JsonApiDotNetCore/Errors/RelationshipNotFoundException.cs
+++ b/src/JsonApiDotNetCore/Errors/RelationshipNotFoundException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when a relationship does not exist.
///
[PublicAPI]
-public sealed class RelationshipNotFoundException(string relationshipName, string resourceType) : JsonApiException(new ErrorObject(HttpStatusCode.NotFound)
-{
- Title = "The requested relationship does not exist.",
- Detail = $"Resource of type '{resourceType}' does not contain a relationship named '{relationshipName}'."
-});
+public sealed class RelationshipNotFoundException(string relationshipName, string resourceType)
+ : JsonApiException(new ErrorObject(HttpStatusCode.NotFound)
+ {
+ Title = "The requested relationship does not exist.",
+ Detail = $"Resource of type '{resourceType}' does not contain a relationship named '{relationshipName}'."
+ });
diff --git a/src/JsonApiDotNetCore/Errors/ResourceAlreadyExistsException.cs b/src/JsonApiDotNetCore/Errors/ResourceAlreadyExistsException.cs
index d2941422b9..518b59ef21 100644
--- a/src/JsonApiDotNetCore/Errors/ResourceAlreadyExistsException.cs
+++ b/src/JsonApiDotNetCore/Errors/ResourceAlreadyExistsException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when creating a resource with an ID that already exists.
///
[PublicAPI]
-public sealed class ResourceAlreadyExistsException(string resourceId, string resourceType) : JsonApiException(new ErrorObject(HttpStatusCode.Conflict)
-{
- Title = "Another resource with the specified ID already exists.",
- Detail = $"Another resource of type '{resourceType}' with ID '{resourceId}' already exists."
-});
+public sealed class ResourceAlreadyExistsException(string resourceId, string resourceType)
+ : JsonApiException(new ErrorObject(HttpStatusCode.Conflict)
+ {
+ Title = "Another resource with the specified ID already exists.",
+ Detail = $"Another resource of type '{resourceType}' with ID '{resourceId}' already exists."
+ });
diff --git a/src/JsonApiDotNetCore/Errors/ResourceNotFoundException.cs b/src/JsonApiDotNetCore/Errors/ResourceNotFoundException.cs
index 5b2b2a829f..27ac99cafd 100644
--- a/src/JsonApiDotNetCore/Errors/ResourceNotFoundException.cs
+++ b/src/JsonApiDotNetCore/Errors/ResourceNotFoundException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when a resource does not exist.
///
[PublicAPI]
-public sealed class ResourceNotFoundException(string resourceId, string resourceType) : JsonApiException(new ErrorObject(HttpStatusCode.NotFound)
-{
- Title = "The requested resource does not exist.",
- Detail = $"Resource of type '{resourceType}' with ID '{resourceId}' does not exist."
-});
+public sealed class ResourceNotFoundException(string resourceId, string resourceType)
+ : JsonApiException(new ErrorObject(HttpStatusCode.NotFound)
+ {
+ Title = "The requested resource does not exist.",
+ Detail = $"Resource of type '{resourceType}' with ID '{resourceId}' does not exist."
+ });
diff --git a/src/JsonApiDotNetCore/Errors/RouteNotAvailableException.cs b/src/JsonApiDotNetCore/Errors/RouteNotAvailableException.cs
index 0bd1a3debd..d04d2c599b 100644
--- a/src/JsonApiDotNetCore/Errors/RouteNotAvailableException.cs
+++ b/src/JsonApiDotNetCore/Errors/RouteNotAvailableException.cs
@@ -8,11 +8,12 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when a request is received for an HTTP route that is not exposed.
///
[PublicAPI]
-public sealed class RouteNotAvailableException(HttpMethod method, string route) : JsonApiException(new ErrorObject(HttpStatusCode.Forbidden)
-{
- Title = "The requested endpoint is not accessible.",
- Detail = $"Endpoint '{route}' is not accessible for {method} requests."
-})
+public sealed class RouteNotAvailableException(HttpMethod method, string route)
+ : JsonApiException(new ErrorObject(HttpStatusCode.Forbidden)
+ {
+ Title = "The requested endpoint is not accessible.",
+ Detail = $"Endpoint '{route}' is not accessible for {method} requests."
+ })
{
public HttpMethod Method { get; } = method;
}
diff --git a/src/JsonApiDotNetCore/Errors/UnknownLocalIdValueException.cs b/src/JsonApiDotNetCore/Errors/UnknownLocalIdValueException.cs
index 4cd5e3d0de..023f577912 100644
--- a/src/JsonApiDotNetCore/Errors/UnknownLocalIdValueException.cs
+++ b/src/JsonApiDotNetCore/Errors/UnknownLocalIdValueException.cs
@@ -8,8 +8,9 @@ namespace JsonApiDotNetCore.Errors;
/// The error that is thrown when referencing a local ID that hasn't been assigned.
///
[PublicAPI]
-public sealed class UnknownLocalIdValueException(string localId) : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
-{
- Title = "Server-generated value for local ID is not available at this point.",
- Detail = $"Server-generated value for local ID '{localId}' is not available at this point."
-});
+public sealed class UnknownLocalIdValueException(string localId)
+ : JsonApiException(new ErrorObject(HttpStatusCode.BadRequest)
+ {
+ Title = "Server-generated value for local ID is not available at this point.",
+ Detail = $"Server-generated value for local ID '{localId}' is not available at this point."
+ });
diff --git a/src/JsonApiDotNetCore/QueryStrings/FieldChains/FieldChainFormatException.cs b/src/JsonApiDotNetCore/QueryStrings/FieldChains/FieldChainFormatException.cs
index d4e0d35d55..f7a81aa443 100644
--- a/src/JsonApiDotNetCore/QueryStrings/FieldChains/FieldChainFormatException.cs
+++ b/src/JsonApiDotNetCore/QueryStrings/FieldChains/FieldChainFormatException.cs
@@ -3,7 +3,8 @@ namespace JsonApiDotNetCore.QueryStrings.FieldChains;
///
/// The exception that is thrown when the format of a dot-separated resource field chain is invalid.
///
-internal sealed class FieldChainFormatException(int position, string message) : FormatException(message)
+internal sealed class FieldChainFormatException(int position, string message)
+ : FormatException(message)
{
///
/// Gets the zero-based error position in the field chain, or at its end.
diff --git a/src/JsonApiDotNetCore/QueryStrings/FieldChains/PatternFormatException.cs b/src/JsonApiDotNetCore/QueryStrings/FieldChains/PatternFormatException.cs
index 04a73f7f72..3a607c435f 100644
--- a/src/JsonApiDotNetCore/QueryStrings/FieldChains/PatternFormatException.cs
+++ b/src/JsonApiDotNetCore/QueryStrings/FieldChains/PatternFormatException.cs
@@ -6,7 +6,8 @@ namespace JsonApiDotNetCore.QueryStrings.FieldChains;
/// The exception that is thrown when the format of a is invalid.
///
[PublicAPI]
-public sealed class PatternFormatException(string pattern, int position, string message) : FormatException(message)
+public sealed class PatternFormatException(string pattern, int position, string message)
+ : FormatException(message)
{
///
/// Gets the text of the invalid pattern.
diff --git a/src/JsonApiDotNetCore/Repositories/DataStoreUpdateException.cs b/src/JsonApiDotNetCore/Repositories/DataStoreUpdateException.cs
index 4855c7fb6a..9fb9b482cd 100644
--- a/src/JsonApiDotNetCore/Repositories/DataStoreUpdateException.cs
+++ b/src/JsonApiDotNetCore/Repositories/DataStoreUpdateException.cs
@@ -6,4 +6,5 @@ namespace JsonApiDotNetCore.Repositories;
/// The error that is thrown when the underlying data store is unable to persist changes.
///
[PublicAPI]
-public sealed class DataStoreUpdateException(Exception? innerException) : Exception("Failed to persist changes in the underlying data store.", innerException);
+public sealed class DataStoreUpdateException(Exception? innerException)
+ : Exception("Failed to persist changes in the underlying data store.", innerException);
diff --git a/test/DiscoveryTests/PrivateResourceDefinition.cs b/test/DiscoveryTests/PrivateResourceDefinition.cs
index 80883eaa6d..3003ce389c 100644
--- a/test/DiscoveryTests/PrivateResourceDefinition.cs
+++ b/test/DiscoveryTests/PrivateResourceDefinition.cs
@@ -5,4 +5,5 @@
namespace DiscoveryTests;
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
-public sealed class PrivateResourceDefinition(IResourceGraph resourceGraph) : JsonApiResourceDefinition(resourceGraph);
+public sealed class PrivateResourceDefinition(IResourceGraph resourceGraph)
+ : JsonApiResourceDefinition(resourceGraph);
diff --git a/test/DiscoveryTests/PrivateResourceService.cs b/test/DiscoveryTests/PrivateResourceService.cs
index 751d04baab..bad4b41428 100644
--- a/test/DiscoveryTests/PrivateResourceService.cs
+++ b/test/DiscoveryTests/PrivateResourceService.cs
@@ -13,5 +13,6 @@ namespace DiscoveryTests;
public sealed class PrivateResourceService(
IResourceRepositoryAccessor repositoryAccessor, IQueryLayerComposer queryLayerComposer, IPaginationContext paginationContext, IJsonApiOptions options,
ILoggerFactory loggerFactory, IJsonApiRequest request, IResourceChangeTracker resourceChangeTracker,
- IResourceDefinitionAccessor resourceDefinitionAccessor) : JsonApiResourceService(repositoryAccessor, queryLayerComposer,
- paginationContext, options, loggerFactory, request, resourceChangeTracker, resourceDefinitionAccessor);
+ IResourceDefinitionAccessor resourceDefinitionAccessor)
+ : JsonApiResourceService(repositoryAccessor, queryLayerComposer, paginationContext, options, loggerFactory, request,
+ resourceChangeTracker, resourceDefinitionAccessor);
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionDbContext.cs
index b05a82f382..fe83dace37 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Archiving;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class TelevisionDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class TelevisionDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Networks => Set();
public DbSet Stations => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Controllers/CreateMusicTrackOperationsController.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Controllers/CreateMusicTrackOperationsController.cs
index b3f98df0bc..81efcf9b1d 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Controllers/CreateMusicTrackOperationsController.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Controllers/CreateMusicTrackOperationsController.cs
@@ -13,8 +13,8 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations.Controllers;
[Route("/operations/musicTracks/create")]
public sealed class CreateMusicTrackOperationsController(
IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor, IJsonApiRequest request,
- ITargetedFields targetedFields) : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields,
- OnlyCreateMusicTracksOperationFilter.Instance)
+ ITargetedFields targetedFields)
+ : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields, OnlyCreateMusicTracksOperationFilter.Instance)
{
private sealed class OnlyCreateMusicTracksOperationFilter : IAtomicOperationFilter
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsController.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsController.cs
index 78426804b3..2ea1b88bad 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsController.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsController.cs
@@ -9,5 +9,5 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations;
public sealed class OperationsController(
IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor, IJsonApiRequest request,
- ITargetedFields targetedFields, IAtomicOperationFilter operationFilter) : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor,
- request, targetedFields, operationFilter);
+ ITargetedFields targetedFields, IAtomicOperationFilter operationFilter)
+ : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields, operationFilter);
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsDbContext.cs
index e4e22195a8..e13a922941 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/OperationsDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class OperationsDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class OperationsDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Playlists => Set();
public DbSet MusicTracks => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Transactions/ExtraDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Transactions/ExtraDbContext.cs
index efc9ebaeaa..290efd3437 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Transactions/ExtraDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Transactions/ExtraDbContext.cs
@@ -5,4 +5,5 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations.Transactions;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ExtraDbContext(DbContextOptions options) : TestableDbContext(options);
+public sealed class ExtraDbContext(DbContextOptions options)
+ : TestableDbContext(options);
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/OperationsController.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/OperationsController.cs
index de1cd02c20..d7f252c3bd 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/OperationsController.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/OperationsController.cs
@@ -12,8 +12,8 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.Authorization.Scopes;
public sealed class OperationsController(
IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor, IJsonApiRequest request,
- ITargetedFields targetedFields, IAtomicOperationFilter operationFilter) : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor,
- request, targetedFields, operationFilter)
+ ITargetedFields targetedFields, IAtomicOperationFilter operationFilter)
+ : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields, operationFilter)
{
public override async Task PostOperationsAsync(IList operations, CancellationToken cancellationToken)
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/ScopesDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/ScopesDbContext.cs
index 81af9423d2..296ded9b42 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/ScopesDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Authorization/Scopes/ScopesDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Authorization.Scopes;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ScopesDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class ScopesDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Movies => Set();
public DbSet Actors => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Blobs/BlobDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Blobs/BlobDbContext.cs
index 64c8cd7569..89601169e5 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Blobs/BlobDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Blobs/BlobDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Blobs;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class BlobDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class BlobDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet ImageContainers => Set();
}
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/CompositeKeys/CompositeDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/CompositeKeys/CompositeDbContext.cs
index 3d10a70df6..c4f8e0f26a 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/CompositeKeys/CompositeDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/CompositeKeys/CompositeDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.CompositeKeys;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class CompositeDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class CompositeDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Cars => Set();
public DbSet Engines => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/OperationsController.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/OperationsController.cs
index 24300dfc5c..9792ed8830 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/OperationsController.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/OperationsController.cs
@@ -9,5 +9,5 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.ContentNegotiation;
public sealed class OperationsController(
IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IOperationsProcessor processor, IJsonApiRequest request,
- ITargetedFields targetedFields, IAtomicOperationFilter operationFilter) : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor,
- request, targetedFields, operationFilter);
+ ITargetedFields targetedFields, IAtomicOperationFilter operationFilter)
+ : JsonApiOperationsController(options, resourceGraph, loggerFactory, processor, request, targetedFields, operationFilter);
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/PolicyDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/PolicyDbContext.cs
index bf96700a06..94f44189cf 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/PolicyDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/PolicyDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ContentNegotiation;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class PolicyDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class PolicyDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Policies => Set();
}
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ActionResultDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ActionResultDbContext.cs
index bbf27df0d3..6d3e9e654a 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ActionResultDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ActionResultDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ControllerActionResults;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ActionResultDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class ActionResultDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Toothbrushes => Set();
}
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/CustomRouteDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/CustomRouteDbContext.cs
index 43c3bfa59f..2228b1e304 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/CustomRouteDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/CustomRouteDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.CustomRoutes;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class CustomRouteDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class CustomRouteDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Towns => Set();
public DbSet Civilians => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/EagerLoadingDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/EagerLoadingDbContext.cs
index 9b0932064c..e01e0a4231 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/EagerLoadingDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/EagerLoadingDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.EagerLoading;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class EagerLoadingDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class EagerLoadingDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet States => Set();
public DbSet Streets => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/AlternateExceptionHandler.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/AlternateExceptionHandler.cs
index 6e406d9e0c..703cec35cc 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/AlternateExceptionHandler.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/AlternateExceptionHandler.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ExceptionHandling;
-public sealed class AlternateExceptionHandler(ILoggerFactory loggerFactory, IJsonApiOptions options) : ExceptionHandler(loggerFactory, options)
+public sealed class AlternateExceptionHandler(ILoggerFactory loggerFactory, IJsonApiOptions options)
+ : ExceptionHandler(loggerFactory, options)
{
protected override LogLevel GetLogLevel(Exception exception)
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleIsNoLongerAvailableException.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleIsNoLongerAvailableException.cs
index a1f7f15fcf..18341374f6 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleIsNoLongerAvailableException.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleIsNoLongerAvailableException.cs
@@ -4,8 +4,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ExceptionHandling;
-internal sealed class ConsumerArticleIsNoLongerAvailableException(string articleCode, string supportEmailAddress) : JsonApiException(
- new ErrorObject(HttpStatusCode.Gone)
+internal sealed class ConsumerArticleIsNoLongerAvailableException(string articleCode, string supportEmailAddress)
+ : JsonApiException(new ErrorObject(HttpStatusCode.Gone)
{
Title = "The requested article is no longer available.",
Detail = $"Article with code '{articleCode}' is no longer available."
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleService.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleService.cs
index fe110f7714..9c2a9fde48 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleService.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticleService.cs
@@ -13,8 +13,9 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.ExceptionHandling;
public sealed class ConsumerArticleService(
IResourceRepositoryAccessor repositoryAccessor, IQueryLayerComposer queryLayerComposer, IPaginationContext paginationContext, IJsonApiOptions options,
ILoggerFactory loggerFactory, IJsonApiRequest request, IResourceChangeTracker resourceChangeTracker,
- IResourceDefinitionAccessor resourceDefinitionAccessor) : JsonApiResourceService(repositoryAccessor, queryLayerComposer,
- paginationContext, options, loggerFactory, request, resourceChangeTracker, resourceDefinitionAccessor)
+ IResourceDefinitionAccessor resourceDefinitionAccessor)
+ : JsonApiResourceService(repositoryAccessor, queryLayerComposer, paginationContext, options, loggerFactory, request,
+ resourceChangeTracker, resourceDefinitionAccessor)
{
private const string SupportEmailAddress = "company@email.com";
internal const string UnavailableArticlePrefix = "X";
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ErrorDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ErrorDbContext.cs
index fb90f661fa..c2600dc3d6 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ErrorDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ErrorDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ExceptionHandling;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ErrorDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class ErrorDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet ConsumerArticles => Set();
public DbSet ThrowingArticles => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/HostingDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/HostingDbContext.cs
index a27f87c770..2df6d9e390 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/HostingDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/HostingDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.HostingInIIS;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class HostingDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class HostingDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet ArtGalleries => Set();
public DbSet Paintings => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/IdObfuscation/ObfuscationDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/IdObfuscation/ObfuscationDbContext.cs
index 820a6cf554..94188a7d60 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/IdObfuscation/ObfuscationDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/IdObfuscation/ObfuscationDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.IdObfuscation;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ObfuscationDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class ObfuscationDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet BankAccounts => Set();
public DbSet DebitCards => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/ModelState/ModelStateDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/ModelState/ModelStateDbContext.cs
index 3d41c39035..9a480988cc 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/ModelState/ModelStateDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/ModelState/ModelStateDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.InputValidation.ModelState;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ModelStateDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class ModelStateDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Volumes => Set();
public DbSet Directories => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDbContext.cs
index e49e5618a2..e7c264ab11 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.InputValidation.RequestBody;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class WorkflowDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class WorkflowDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Workflows => Set();
}
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDefinition.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDefinition.cs
index bb0b81de2f..aaa35af882 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDefinition.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/RequestBody/WorkflowDefinition.cs
@@ -9,7 +9,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.InputValidation.RequestBody;
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
-public sealed class WorkflowDefinition(IResourceGraph resourceGraph) : JsonApiResourceDefinition(resourceGraph)
+public sealed class WorkflowDefinition(IResourceGraph resourceGraph)
+ : JsonApiResourceDefinition(resourceGraph)
{
private static readonly Dictionary StageTransitionTable = new()
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Links/LinksDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Links/LinksDbContext.cs
index 9ac46d3b91..4e1cbb29a4 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Links/LinksDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Links/LinksDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Links;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class LinksDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class LinksDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet PhotoAlbums => Set();
public DbSet Photos => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Logging/LoggingDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Logging/LoggingDbContext.cs
index 262f8e1aee..63a58d20b5 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Logging/LoggingDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Logging/LoggingDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Logging;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class LoggingDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class LoggingDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet AuditEntries => Set();
public DbSet FruitBowls => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Meta/MetaDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Meta/MetaDbContext.cs
index a1ab87c420..6e0b13afa5 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Meta/MetaDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Meta/MetaDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Meta;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class MetaDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class MetaDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet ProductFamilies => Set();
public DbSet SupportTickets => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/FireAndForgetDelivery/FireForgetDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/FireAndForgetDelivery/FireForgetDbContext.cs
index c25715d282..b310d9d062 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/FireAndForgetDelivery/FireForgetDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/FireAndForgetDelivery/FireForgetDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Microservices.FireAndForgetDelivery;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class FireForgetDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class FireForgetDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Users => Set();
public DbSet Groups => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/TransactionalOutboxPattern/OutboxDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/TransactionalOutboxPattern/OutboxDbContext.cs
index a09b8ba389..ce2f82fe3f 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/TransactionalOutboxPattern/OutboxDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Microservices/TransactionalOutboxPattern/OutboxDbContext.cs
@@ -6,7 +6,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Microservices.TransactionalOutboxPattern;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class OutboxDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class OutboxDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Users => Set();
public DbSet Groups => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyDbContext.cs
index 2ace5fb3fd..d88be62da4 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/MultiTenancyDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class MultiTenancyDbContext(DbContextOptions options, ITenantProvider tenantProvider) : TestableDbContext(options)
+public sealed class MultiTenancyDbContext(DbContextOptions options, ITenantProvider tenantProvider)
+ : TestableDbContext(options)
{
private readonly ITenantProvider _tenantProvider = tenantProvider;
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/NamingConventions/NamingDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/NamingConventions/NamingDbContext.cs
index a13c4a44ae..8ab8a7e703 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/NamingConventions/NamingDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/NamingConventions/NamingDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.NamingConventions;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class NamingDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class NamingDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet SwimmingPools => Set();
public DbSet WaterSlides => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/EmptyDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/EmptyDbContext.cs
index 33fa56a0bb..0717b6e3ae 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/EmptyDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/EmptyDbContext.cs
@@ -5,4 +5,5 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.NonJsonApiControllers;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class EmptyDbContext(DbContextOptions options) : TestableDbContext(options);
+public sealed class EmptyDbContext(DbContextOptions options)
+ : TestableDbContext(options);
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/KnownDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/KnownDbContext.cs
index 23aae10cd3..4a884f0fb2 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/KnownDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/NonJsonApiControllers/KnownDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.NonJsonApiControllers;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class KnownDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class KnownDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet KnownResources => Set();
}
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/IsUpperCase/IsUpperCaseFilterParser.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/IsUpperCase/IsUpperCaseFilterParser.cs
index 27b32d7189..99c5b30bc2 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/IsUpperCase/IsUpperCaseFilterParser.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/IsUpperCase/IsUpperCaseFilterParser.cs
@@ -6,7 +6,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.CustomFunctions.IsUpperCase;
-internal sealed class IsUpperCaseFilterParser(IResourceFactory resourceFactory) : FilterParser(resourceFactory)
+internal sealed class IsUpperCaseFilterParser(IResourceFactory resourceFactory)
+ : FilterParser(resourceFactory)
{
protected override FilterExpression ParseFilter()
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/StringLength/LengthFilterParser.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/StringLength/LengthFilterParser.cs
index f429224290..f787319373 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/StringLength/LengthFilterParser.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/StringLength/LengthFilterParser.cs
@@ -6,7 +6,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.CustomFunctions.StringLength;
-internal sealed class LengthFilterParser(IResourceFactory resourceFactory) : FilterParser(resourceFactory)
+internal sealed class LengthFilterParser(IResourceFactory resourceFactory)
+ : FilterParser(resourceFactory)
{
protected override bool IsFunction(string name)
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/Sum/SumFilterParser.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/Sum/SumFilterParser.cs
index 1db57b4fc0..11cb521a07 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/Sum/SumFilterParser.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/Sum/SumFilterParser.cs
@@ -6,7 +6,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.CustomFunctions.Sum;
-internal sealed class SumFilterParser(IResourceFactory resourceFactory) : FilterParser(resourceFactory)
+internal sealed class SumFilterParser(IResourceFactory resourceFactory)
+ : FilterParser(resourceFactory)
{
private static readonly FieldChainPattern SingleToManyRelationshipChain = FieldChainPattern.Parse("M");
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/TimeOffset/TimeOffsetFilterParser.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/TimeOffset/TimeOffsetFilterParser.cs
index 3114e75b77..81d80f64b6 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/TimeOffset/TimeOffsetFilterParser.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/CustomFunctions/TimeOffset/TimeOffsetFilterParser.cs
@@ -4,7 +4,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.CustomFunctions.TimeOffset;
-internal sealed class TimeOffsetFilterParser(IResourceFactory resourceFactory) : FilterParser(resourceFactory)
+internal sealed class TimeOffsetFilterParser(IResourceFactory resourceFactory)
+ : FilterParser(resourceFactory)
{
protected override bool IsFunction(string name)
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Filtering/FilterDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Filtering/FilterDbContext.cs
index a3d6e5ec31..9b57bd9d50 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Filtering/FilterDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Filtering/FilterDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.Filtering;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class FilterDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class FilterDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet FilterableResources => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/QueryStringDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/QueryStringDbContext.cs
index 28a8935d26..0a7102c3d2 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/QueryStringDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/QueryStringDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class QueryStringDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class QueryStringDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Blogs => Set();
public DbSet Posts => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/SparseFieldSets/ResultCapturingRepository.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/SparseFieldSets/ResultCapturingRepository.cs
index 97eed95472..2e38517763 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/SparseFieldSets/ResultCapturingRepository.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/SparseFieldSets/ResultCapturingRepository.cs
@@ -14,8 +14,9 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings.SparseFieldSets;
public sealed class ResultCapturingRepository(
ITargetedFields targetedFields, IDbContextResolver dbContextResolver, IResourceGraph resourceGraph, IResourceFactory resourceFactory,
IEnumerable constraintProviders, ILoggerFactory loggerFactory, IResourceDefinitionAccessor resourceDefinitionAccessor,
- ResourceCaptureStore captureStore) : EntityFrameworkCoreRepository(targetedFields, dbContextResolver, resourceGraph, resourceFactory,
- constraintProviders, loggerFactory, resourceDefinitionAccessor)
+ ResourceCaptureStore captureStore)
+ : EntityFrameworkCoreRepository(targetedFields, dbContextResolver, resourceGraph, resourceFactory, constraintProviders, loggerFactory,
+ resourceDefinitionAccessor)
where TResource : class, IIdentifiable
{
private readonly ResourceCaptureStore _captureStore = captureStore;
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Creating/AssignIdToRgbColorDefinition.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Creating/AssignIdToRgbColorDefinition.cs
index c1e1c8a576..d13bf4e37e 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Creating/AssignIdToRgbColorDefinition.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Creating/AssignIdToRgbColorDefinition.cs
@@ -6,7 +6,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ReadWrite.Creating;
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
-internal sealed class AssignIdToRgbColorDefinition(IResourceGraph resourceGraph) : JsonApiResourceDefinition(resourceGraph)
+internal sealed class AssignIdToRgbColorDefinition(IResourceGraph resourceGraph)
+ : JsonApiResourceDefinition(resourceGraph)
{
internal const string DefaultId = "0x000000";
internal const string DefaultName = "Black";
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/ReadWriteDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/ReadWriteDbContext.cs
index e8350555d5..b76f018448 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/ReadWriteDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/ReadWriteDbContext.cs
@@ -8,7 +8,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ReadWrite;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ReadWriteDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class ReadWriteDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet WorkItems => Set();
public DbSet WorkTags => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Updating/Relationships/RemoveFromToManyRelationshipTests.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Updating/Relationships/RemoveFromToManyRelationshipTests.cs
index 7e773e5cb4..adf50e1926 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Updating/Relationships/RemoveFromToManyRelationshipTests.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Updating/Relationships/RemoveFromToManyRelationshipTests.cs
@@ -1142,7 +1142,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
}
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
- private sealed class RemoveExtraFromWorkItemDefinition(IResourceGraph resourceGraph) : JsonApiResourceDefinition(resourceGraph)
+ private sealed class RemoveExtraFromWorkItemDefinition(IResourceGraph resourceGraph)
+ : JsonApiResourceDefinition(resourceGraph)
{
// Enables to verify that not the full relationship was loaded upfront.
public HashSet PreloadedSubscribers { get; } = new(IdentifiableComparer.Instance);
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/RequiredRelationships/DefaultBehaviorDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/RequiredRelationships/DefaultBehaviorDbContext.cs
index d0bea86f38..b874679563 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/RequiredRelationships/DefaultBehaviorDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/RequiredRelationships/DefaultBehaviorDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.RequiredRelationships;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class DefaultBehaviorDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class DefaultBehaviorDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Customers => Set();
public DbSet Orders => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/UniverseDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/UniverseDbContext.cs
index 6bfd710d0d..94e1b73ec0 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/UniverseDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/UniverseDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Reading;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class UniverseDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class UniverseDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Stars => Set();
public DbSet Planets => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Serialization/SerializationDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Serialization/SerializationDbContext.cs
index 1772f6118c..cbbf8142c5 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Serialization/SerializationDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Serialization/SerializationDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceDefinitions.Serialization;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class SerializationDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class SerializationDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Students => Set();
public DbSet Scholarships => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ChangeTracking/ChangeTrackingDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ChangeTracking/ChangeTrackingDbContext.cs
index e9002e7be9..b905450d85 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ChangeTracking/ChangeTrackingDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ChangeTracking/ChangeTrackingDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance.ChangeTracking;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ChangeTrackingDbContext(DbContextOptions options) : ResourceInheritanceDbContext(options)
+public sealed class ChangeTrackingDbContext(DbContextOptions options)
+ : ResourceInheritanceDbContext(options)
{
public DbSet AlwaysMovingTandems => Set();
}
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ResourceInheritanceDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ResourceInheritanceDbContext.cs
index acac25ee8a..6ead9fe296 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ResourceInheritanceDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ResourceInheritanceDbContext.cs
@@ -6,7 +6,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public abstract class ResourceInheritanceDbContext(DbContextOptions options) : TestableDbContext(options)
+public abstract class ResourceInheritanceDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Vehicles => Set();
public DbSet Bikes => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerConcreteType/TablePerConcreteTypeDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerConcreteType/TablePerConcreteTypeDbContext.cs
index 1e7e644367..9da35f2eed 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerConcreteType/TablePerConcreteTypeDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerConcreteType/TablePerConcreteTypeDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance.TablePerConcreteType;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class TablePerConcreteTypeDbContext(DbContextOptions options) : ResourceInheritanceDbContext(options)
+public sealed class TablePerConcreteTypeDbContext(DbContextOptions options)
+ : ResourceInheritanceDbContext(options)
{
protected override void OnModelCreating(ModelBuilder builder)
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerHierarchy/TablePerHierarchyDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerHierarchy/TablePerHierarchyDbContext.cs
index f9d63e7dde..38ce305787 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerHierarchy/TablePerHierarchyDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerHierarchy/TablePerHierarchyDbContext.cs
@@ -4,4 +4,5 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance.TablePerHierarchy;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class TablePerHierarchyDbContext(DbContextOptions options) : ResourceInheritanceDbContext(options);
+public sealed class TablePerHierarchyDbContext(DbContextOptions options)
+ : ResourceInheritanceDbContext(options);
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerType/TablePerTypeDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerType/TablePerTypeDbContext.cs
index 382a54cc3e..d31cc6a5b6 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerType/TablePerTypeDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerType/TablePerTypeDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance.TablePerType;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class TablePerTypeDbContext(DbContextOptions options) : ResourceInheritanceDbContext(options)
+public sealed class TablePerTypeDbContext(DbContextOptions options)
+ : ResourceInheritanceDbContext(options)
{
protected override void OnModelCreating(ModelBuilder builder)
{
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/RestrictionDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/RestrictionDbContext.cs
index 8a5f5484de..d83e096e6a 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/RestrictionDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/RestrictionDbContext.cs
@@ -5,7 +5,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.RestrictedControllers;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class RestrictionDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class RestrictionDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Tables => Set();
public DbSet Chairs => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationDbContext.cs
index c90e22f736..713ea20545 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/SerializationDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.Serialization;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class SerializationDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class SerializationDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Meetings => Set();
public DbSet Attendees => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/SoftDeletion/SoftDeletionDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/SoftDeletion/SoftDeletionDbContext.cs
index 98da66fc3d..0efa423df5 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/SoftDeletion/SoftDeletionDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/SoftDeletion/SoftDeletionDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.SoftDeletion;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class SoftDeletionDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class SoftDeletionDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet Companies => Set();
public DbSet Departments => Set();
diff --git a/test/JsonApiDotNetCoreTests/IntegrationTests/ZeroKeys/ZeroKeyDbContext.cs b/test/JsonApiDotNetCoreTests/IntegrationTests/ZeroKeys/ZeroKeyDbContext.cs
index 8502500c20..836a4637dc 100644
--- a/test/JsonApiDotNetCoreTests/IntegrationTests/ZeroKeys/ZeroKeyDbContext.cs
+++ b/test/JsonApiDotNetCoreTests/IntegrationTests/ZeroKeys/ZeroKeyDbContext.cs
@@ -7,7 +7,8 @@
namespace JsonApiDotNetCoreTests.IntegrationTests.ZeroKeys;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
-public sealed class ZeroKeyDbContext(DbContextOptions options) : TestableDbContext(options)
+public sealed class ZeroKeyDbContext(DbContextOptions options)
+ : TestableDbContext(options)
{
public DbSet