Skip to content

Commit d7c8b4b

Browse files
committed
Post-merge fixes
1 parent 7288b8a commit d7c8b4b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

test/OpenApiTests/SchemaProperties/ModelStateValidationDisabledStartup.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
using System.Text.Json.Serialization;
22
using JetBrains.Annotations;
33
using JsonApiDotNetCore.Configuration;
4-
using Microsoft.EntityFrameworkCore;
4+
using TestBuildingBlocks;
55

66
namespace OpenApiTests.SchemaProperties;
77

88
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
99
public sealed class ModelStateValidationDisabledStartup<TDbContext> : OpenApiStartup<TDbContext>
10-
where TDbContext : DbContext
10+
where TDbContext : TestableDbContext
1111
{
1212
protected override void SetJsonApiOptions(JsonApiOptions options)
1313
{

test/OpenApiTests/SchemaProperties/NullableReferenceTypesDisabled/NullableReferenceTypesDisabledDbContext.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using JetBrains.Annotations;
22
using Microsoft.EntityFrameworkCore;
3+
using TestBuildingBlocks;
34

45
namespace OpenApiTests.SchemaProperties.NullableReferenceTypesDisabled;
56

67
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
7-
public sealed class NullableReferenceTypesDisabledDbContext : DbContext
8+
public sealed class NullableReferenceTypesDisabledDbContext : TestableDbContext
89
{
910
public DbSet<Chicken> Chicken => Set<Chicken>();
1011

test/OpenApiTests/SchemaProperties/NullableReferenceTypesEnabled/NullableReferenceTypesEnabledDbContext.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using JetBrains.Annotations;
22
using Microsoft.EntityFrameworkCore;
3+
using TestBuildingBlocks;
34

45
namespace OpenApiTests.SchemaProperties.NullableReferenceTypesEnabled;
56

67
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
7-
public sealed class NullableReferenceTypesEnabledDbContext : DbContext
8+
public sealed class NullableReferenceTypesEnabledDbContext : TestableDbContext
89
{
910
public DbSet<Cow> Cow => Set<Cow>();
1011

test/OpenApiTests/SchemaProperties/SchemaPropertiesStartup.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
using System.Text.Json.Serialization;
22
using JetBrains.Annotations;
33
using JsonApiDotNetCore.Configuration;
4-
using Microsoft.EntityFrameworkCore;
4+
using TestBuildingBlocks;
55

66
namespace OpenApiTests.SchemaProperties;
77

88
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
99
public sealed class SchemaPropertiesStartup<TDbContext> : OpenApiStartup<TDbContext>
10-
where TDbContext : DbContext
10+
where TDbContext : TestableDbContext
1111
{
1212
protected override void SetJsonApiOptions(JsonApiOptions options)
1313
{

0 commit comments

Comments
 (0)