File tree 4 files changed +8
-6
lines changed
test/OpenApiTests/SchemaProperties
NullableReferenceTypesDisabled
NullableReferenceTypesEnabled
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
using System . Text . Json . Serialization ;
2
2
using JetBrains . Annotations ;
3
3
using JsonApiDotNetCore . Configuration ;
4
- using Microsoft . EntityFrameworkCore ;
4
+ using TestBuildingBlocks ;
5
5
6
6
namespace OpenApiTests . SchemaProperties ;
7
7
8
8
[ UsedImplicitly ( ImplicitUseKindFlags . InstantiatedNoFixedConstructorSignature ) ]
9
9
public sealed class ModelStateValidationDisabledStartup < TDbContext > : OpenApiStartup < TDbContext >
10
- where TDbContext : DbContext
10
+ where TDbContext : TestableDbContext
11
11
{
12
12
protected override void SetJsonApiOptions ( JsonApiOptions options )
13
13
{
Original file line number Diff line number Diff line change 1
1
using JetBrains . Annotations ;
2
2
using Microsoft . EntityFrameworkCore ;
3
+ using TestBuildingBlocks ;
3
4
4
5
namespace OpenApiTests . SchemaProperties . NullableReferenceTypesDisabled ;
5
6
6
7
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
7
- public sealed class NullableReferenceTypesDisabledDbContext : DbContext
8
+ public sealed class NullableReferenceTypesDisabledDbContext : TestableDbContext
8
9
{
9
10
public DbSet < Chicken > Chicken => Set < Chicken > ( ) ;
10
11
Original file line number Diff line number Diff line change 1
1
using JetBrains . Annotations ;
2
2
using Microsoft . EntityFrameworkCore ;
3
+ using TestBuildingBlocks ;
3
4
4
5
namespace OpenApiTests . SchemaProperties . NullableReferenceTypesEnabled ;
5
6
6
7
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
7
- public sealed class NullableReferenceTypesEnabledDbContext : DbContext
8
+ public sealed class NullableReferenceTypesEnabledDbContext : TestableDbContext
8
9
{
9
10
public DbSet < Cow > Cow => Set < Cow > ( ) ;
10
11
Original file line number Diff line number Diff line change 1
1
using System . Text . Json . Serialization ;
2
2
using JetBrains . Annotations ;
3
3
using JsonApiDotNetCore . Configuration ;
4
- using Microsoft . EntityFrameworkCore ;
4
+ using TestBuildingBlocks ;
5
5
6
6
namespace OpenApiTests . SchemaProperties ;
7
7
8
8
[ UsedImplicitly ( ImplicitUseKindFlags . InstantiatedNoFixedConstructorSignature ) ]
9
9
public sealed class SchemaPropertiesStartup < TDbContext > : OpenApiStartup < TDbContext >
10
- where TDbContext : DbContext
10
+ where TDbContext : TestableDbContext
11
11
{
12
12
protected override void SetJsonApiOptions ( JsonApiOptions options )
13
13
{
You can’t perform that action at this time.
0 commit comments