Skip to content

Commit 4096ad4

Browse files
committed
Workaround for Resharper bug "Property can be made init-only"
1 parent 0ba4151 commit 4096ad4

File tree

9 files changed

+27
-0
lines changed

9 files changed

+27
-0
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/ModelState/ModelStateValidationTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
using Microsoft.Extensions.DependencyInjection;
88
#endif
99

10+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
11+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
12+
1013
namespace JsonApiDotNetCoreTests.IntegrationTests.InputValidation.ModelState;
1114

1215
public sealed class ModelStateValidationTests : IClassFixture<IntegrationTestContext<TestableStartup<ModelStateDbContext>, ModelStateDbContext>>

test/JsonApiDotNetCoreTests/UnitTests/Configuration/DependencyContainerRegistrationTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
using TestBuildingBlocks;
1616
using Xunit;
1717

18+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
19+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
20+
1821
namespace JsonApiDotNetCoreTests.UnitTests.Configuration;
1922

2023
public sealed class DependencyContainerRegistrationTests

test/JsonApiDotNetCoreTests/UnitTests/FieldChains/FieldChainPatternInheritanceMatchTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
using Xunit;
1212
using Xunit.Abstractions;
1313

14+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
15+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
16+
1417
// ReSharper disable InconsistentNaming
1518
#pragma warning disable AV1706 // Identifier contains an abbreviation or is too short
1619

test/JsonApiDotNetCoreTests/UnitTests/FieldChains/FieldChainPatternMatchTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
using Xunit;
1212
using Xunit.Abstractions;
1313

14+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
15+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
16+
1417
// ReSharper disable InconsistentNaming
1518
#pragma warning disable AV1706 // Identifier contains an abbreviation or is too short
1619

test/JsonApiDotNetCoreTests/UnitTests/Middleware/JsonApiMiddlewareTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
using TestBuildingBlocks;
1414
using Xunit;
1515

16+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
17+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
18+
1619
#pragma warning disable AV1561 // Signature contains too many parameters
1720

1821
namespace JsonApiDotNetCoreTests.UnitTests.Middleware;

test/JsonApiDotNetCoreTests/UnitTests/ResourceDefinitions/CreateSortExpressionFromLambdaTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
using TestBuildingBlocks;
1212
using Xunit;
1313

14+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
15+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
16+
1417
namespace JsonApiDotNetCoreTests.UnitTests.ResourceDefinitions;
1518

1619
public sealed class CreateSortExpressionFromLambdaTests

test/JsonApiDotNetCoreTests/UnitTests/ResourceGraph/ResourceGraphBuilderTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
using TestBuildingBlocks;
1111
using Xunit;
1212

13+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
14+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
15+
1316
namespace JsonApiDotNetCoreTests.UnitTests.ResourceGraph;
1417

1518
public sealed class ResourceGraphBuilderTests

test/JsonApiDotNetCoreTests/UnitTests/Serialization/Response/IncompleteResourceGraphTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
using Microsoft.Extensions.Logging.Abstractions;
1111
using Xunit;
1212

13+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
14+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
15+
1316
namespace JsonApiDotNetCoreTests.UnitTests.Serialization.Response;
1417

1518
public sealed class IncompleteResourceGraphTests

test/NoEntityFrameworkTests/NullSafeExpressionRewriterTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
using NoEntityFrameworkExample;
77
using Xunit;
88

9+
// Workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494909/Breaking-UsedImplicitly-and-PublicAPI-on-types-no-longer-respected.
10+
// ReSharper disable PropertyCanBeMadeInitOnly.Local
11+
912
namespace NoEntityFrameworkTests;
1013

1114
public sealed class NullSafeExpressionRewriterTests

0 commit comments

Comments
 (0)