Skip to content

Commit 3a2a399

Browse files
author
Bart Koelman
committed
Rename inheritance tests
1 parent 33e3183 commit 3a2a399

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ResourceInheritanceFakers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal sealed class ResourceInheritanceFakers : FakerContainer
108108
private readonly Lazy<Faker<StringValue>> _lazyStringValueFaker = new(() =>
109109
new Faker<StringValue>()
110110
.UseSeed(GetFakerSeed())
111-
.RuleFor(stringValue => stringValue.Content, faker => faker.Lorem.Text()));
111+
.RuleFor(stringValue => stringValue.Content, faker => faker.Lorem.Lines(1)));
112112

113113
private readonly Lazy<Faker<NumberProperty>> _lazyNumberPropertyFaker = new(() =>
114114
new Faker<NumberProperty>()

test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ResourceInheritanceTests.cs renamed to test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/ResourceInheritanceReadTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance;
1212

13-
public abstract class ResourceInheritanceTests<TDbContext> : IClassFixture<IntegrationTestContext<TestableStartup<TDbContext>, TDbContext>>
13+
public abstract class ResourceInheritanceReadTests<TDbContext> : IClassFixture<IntegrationTestContext<TestableStartup<TDbContext>, TDbContext>>
1414
where TDbContext : ResourceInheritanceDbContext
1515
{
1616
private readonly IntegrationTestContext<TestableStartup<TDbContext>, TDbContext> _testContext;
1717
private readonly ResourceInheritanceFakers _fakers = new();
1818

19-
protected ResourceInheritanceTests(IntegrationTestContext<TestableStartup<TDbContext>, TDbContext> testContext)
19+
protected ResourceInheritanceReadTests(IntegrationTestContext<TestableStartup<TDbContext>, TDbContext> testContext)
2020
{
2121
_testContext = testContext;
2222

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance.TablePerHierarchy;
55

66
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
7-
public sealed class TablePerHierarchyTests : ResourceInheritanceTests<TablePerHierarchyDbContext>
7+
public sealed class TablePerHierarchyReadTests : ResourceInheritanceReadTests<TablePerHierarchyDbContext>
88
{
9-
public TablePerHierarchyTests(IntegrationTestContext<TestableStartup<TablePerHierarchyDbContext>, TablePerHierarchyDbContext> testContext)
9+
public TablePerHierarchyReadTests(IntegrationTestContext<TestableStartup<TablePerHierarchyDbContext>, TablePerHierarchyDbContext> testContext)
1010
: base(testContext)
1111
{
1212
}

test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerType/TablePerTypeTests.cs renamed to test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance/TablePerType/TablePerTypeReadTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
namespace JsonApiDotNetCoreTests.IntegrationTests.ResourceInheritance.TablePerType;
55

66
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
7-
public sealed class TablePerTypeTests : ResourceInheritanceTests<TablePerTypeDbContext>
7+
public sealed class TablePerTypeReadTests : ResourceInheritanceReadTests<TablePerTypeDbContext>
88
{
9-
public TablePerTypeTests(IntegrationTestContext<TestableStartup<TablePerTypeDbContext>, TablePerTypeDbContext> testContext)
9+
public TablePerTypeReadTests(IntegrationTestContext<TestableStartup<TablePerTypeDbContext>, TablePerTypeDbContext> testContext)
1010
: base(testContext)
1111
{
1212
}

0 commit comments

Comments
 (0)