Skip to content

Commit 7a9c397

Browse files
author
Bart Koelman
committed
Auto-reformat codebase using updated Resharper tools version
1 parent b464645 commit 7a9c397

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/JsonApiDotNetCore/Errors/ResourcesInRelationshipsNotFoundException.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public ResourcesInRelationshipsNotFoundException(IEnumerable<MissingResourceInRe
1919

2020
private static Error CreateError(MissingResourceInRelationship missingResourceInRelationship)
2121
{
22-
return new(HttpStatusCode.NotFound)
22+
return new Error(HttpStatusCode.NotFound)
2323
{
2424
Title = "A related resource does not exist.",
2525
Detail = $"Related resource of type '{missingResourceInRelationship.ResourceType}' with ID '{missingResourceInRelationship.ResourceId}' " +

src/JsonApiDotNetCore/ObjectExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ public static T[] AsArray<T>(this T element)
2121

2222
public static List<T> AsList<T>(this T element)
2323
{
24-
return new()
24+
return new List<T>
2525
{
2626
element
2727
};
2828
}
2929

3030
public static HashSet<T> AsHashSet<T>(this T element)
3131
{
32-
return new()
32+
return new HashSet<T>
3333
{
3434
element
3535
};

src/JsonApiDotNetCore/Serialization/Building/ResourceObjectBuilderSettingsProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public ResourceObjectBuilderSettingsProvider(IDefaultsQueryStringParameterReader
2424
/// <inheritdoc />
2525
public ResourceObjectBuilderSettings Get()
2626
{
27-
return new(_nullsReader.SerializerNullValueHandling, _defaultsReader.SerializerDefaultValueHandling);
27+
return new ResourceObjectBuilderSettings(_nullsReader.SerializerNullValueHandling, _defaultsReader.SerializerDefaultValueHandling);
2828
}
2929
}
3030
}

test/JsonApiDotNetCoreExampleTests/IntegrationTests/AtomicOperations/QueryStrings/MusicTrackReleaseDefinition.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public MusicTrackReleaseDefinition(IResourceGraph resourceGraph, ISystemClock sy
2424

2525
public override QueryStringParameterHandlers<MusicTrack> OnRegisterQueryableHandlersForQueryStringParameters()
2626
{
27-
return new()
27+
return new QueryStringParameterHandlers<MusicTrack>
2828
{
2929
["isRecentlyReleased"] = FilterOnRecentlyReleased
3030
};

test/JsonApiDotNetCoreExampleTests/IntegrationTests/Microservices/Messages/OutgoingMessage.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public T GetContentAs<T>()
2222

2323
public static OutgoingMessage CreateFromContent(IMessageContent content)
2424
{
25-
return new()
25+
return new OutgoingMessage
2626
{
2727
Type = content.GetType().Name,
2828
FormatVersion = content.FormatVersion,

test/TestBuildingBlocks/HttpResponseMessageExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static class HttpResponseMessageExtensions
1414
{
1515
public static HttpResponseMessageAssertions Should(this HttpResponseMessage instance)
1616
{
17-
return new(instance);
17+
return new HttpResponseMessageAssertions(instance);
1818
}
1919

2020
public sealed class HttpResponseMessageAssertions : ReferenceTypeAssertions<HttpResponseMessage, HttpResponseMessageAssertions>

test/UnitTests/Serialization/DeserializerTestsSetup.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected Document CreateDocumentWithRelationships(string primaryType, string re
3030

3131
protected Document CreateDocumentWithRelationships(string primaryType)
3232
{
33-
return new()
33+
return new Document
3434
{
3535
Data = new ResourceObject
3636
{
@@ -67,7 +67,7 @@ protected RelationshipEntry CreateRelationshipData(string relatedType = null, bo
6767

6868
protected Document CreateTestResourceDocument()
6969
{
70-
return new()
70+
return new Document
7171
{
7272
Data = new ResourceObject
7373
{

0 commit comments

Comments
 (0)