Skip to content

Commit 3ebe52c

Browse files
committed
Add missing controller annotations in tests
1 parent b3b6262 commit 3ebe52c

File tree

12 files changed

+18
-0
lines changed

12 files changed

+18
-0
lines changed
+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using JetBrains.Annotations;
22
using JsonApiDotNetCore.Resources;
3+
using JsonApiDotNetCore.Resources.Annotations;
34

45
namespace DiscoveryTests;
56

67
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource]
79
public sealed class PrivateResource : Identifiable<int>
810
{
911
}

test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/City.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace JsonApiDotNetCoreTests.IntegrationTests.EagerLoading;
66

77
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.EagerLoading")]
89
public sealed class City : Identifiable<int>
910
{
1011
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/IdObfuscation/BankAccount.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using JetBrains.Annotations;
2+
using JsonApiDotNetCore.Controllers;
23
using JsonApiDotNetCore.Resources.Annotations;
34

45
namespace JsonApiDotNetCoreTests.IntegrationTests.IdObfuscation;
56

67
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(GenerateControllerEndpoints = JsonApiEndpoints.None)]
79
public sealed class BankAccount : ObfuscatedIdentifiable
810
{
911
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/IdObfuscation/DebitCard.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using JetBrains.Annotations;
2+
using JsonApiDotNetCore.Controllers;
23
using JsonApiDotNetCore.Resources.Annotations;
34

45
namespace JsonApiDotNetCoreTests.IntegrationTests.IdObfuscation;
56

67
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(GenerateControllerEndpoints = JsonApiEndpoints.None)]
79
public sealed class DebitCard : ObfuscatedIdentifiable
810
{
911
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/NamingConventions/DivingBoard.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
using System.ComponentModel.DataAnnotations;
22
using JetBrains.Annotations;
3+
using JsonApiDotNetCore.Controllers;
34
using JsonApiDotNetCore.Resources;
45
using JsonApiDotNetCore.Resources.Annotations;
56

67
namespace JsonApiDotNetCoreTests.IntegrationTests.NamingConventions;
78

89
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
10+
[Resource(GenerateControllerEndpoints = JsonApiEndpoints.None)]
911
public sealed class DivingBoard : Identifiable<int>
1012
{
1113
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/NamingConventions/SwimmingPool.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using JetBrains.Annotations;
2+
using JsonApiDotNetCore.Controllers;
23
using JsonApiDotNetCore.Resources;
34
using JsonApiDotNetCore.Resources.Annotations;
45

56
namespace JsonApiDotNetCoreTests.IntegrationTests.NamingConventions;
67

78
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
9+
[Resource(GenerateControllerEndpoints = JsonApiEndpoints.None)]
810
public sealed class SwimmingPool : Identifiable<int>
911
{
1012
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/NamingConventions/WaterSlide.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using JetBrains.Annotations;
2+
using JsonApiDotNetCore.Controllers;
23
using JsonApiDotNetCore.Resources;
34
using JsonApiDotNetCore.Resources.Annotations;
45

56
namespace JsonApiDotNetCoreTests.IntegrationTests.NamingConventions;
67

78
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
9+
[Resource(GenerateControllerEndpoints = JsonApiEndpoints.None)]
810
public sealed class WaterSlide : Identifiable<int>
911
{
1012
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/AccountPreferences.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings;
66

77
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.QueryStrings")]
89
public sealed class AccountPreferences : Identifiable<int>
910
{
1011
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Appointment.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings;
66

77
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.QueryStrings")]
89
public sealed class Appointment : Identifiable<int>
910
{
1011
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Label.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings;
66

77
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.QueryStrings")]
89
public sealed class Label : Identifiable<int>
910
{
1011
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/LoginAttempt.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace JsonApiDotNetCoreTests.IntegrationTests.QueryStrings;
66

77
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.QueryStrings")]
89
public sealed class LoginAttempt : Identifiable<int>
910
{
1011
[Attr]

test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/Room.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace JsonApiDotNetCoreTests.IntegrationTests.RestrictedControllers;
66

77
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
8+
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.RestrictedControllers")]
89
public sealed class Room : Identifiable<int>
910
{
1011
[Attr]

0 commit comments

Comments
 (0)