Skip to content

Commit 03aeac8

Browse files
Fix clean up warnings
1 parent 7164452 commit 03aeac8

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ await _testContext.RunOnDatabaseAsync(async db =>
7777
meta = GetExampleMetaData()
7878
};
7979

80-
(HttpResponseMessage response, _) =
81-
await _testContext.ExecutePatchAsync<Document>(
82-
$"/supportTickets/{ticket.StringId}", body);
80+
(HttpResponseMessage response, _) = await _testContext.ExecutePatchAsync<Document>($"/supportTickets/{ticket.StringId}", body);
8381

8482
response.ShouldHaveStatusCode(HttpStatusCode.NoContent);
8583
ValidateMetaData(store.Document!.Meta);
@@ -135,9 +133,7 @@ await _testContext.RunOnDatabaseAsync(async db =>
135133
meta = GetExampleMetaData()
136134
};
137135

138-
(HttpResponseMessage response, _) =
139-
await _testContext.ExecutePatchAsync<Document>(
140-
$"/productFamilies/{family.StringId}", body);
136+
(HttpResponseMessage response, _) = await _testContext.ExecutePatchAsync<Document>($"/productFamilies/{family.StringId}", body);
141137

142138
response.ShouldHaveStatusCode(HttpStatusCode.NoContent);
143139
ValidateMetaData(store.Document!.Meta);
@@ -421,9 +417,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
421417

422418
await _testContext.RunOnDatabaseAsync(async db =>
423419
{
424-
SupportTicket ticket = await db.SupportTickets
425-
.Include(supportTicket => supportTicket.ProductFamily)
426-
.FirstAsync();
420+
SupportTicket ticket = await db.SupportTickets.Include(supportTicket => supportTicket.ProductFamily).FirstAsync();
427421

428422
ticket.ProductFamily.Should().NotBeNull();
429423
});
@@ -549,7 +543,9 @@ await _testContext.RunOnDatabaseAsync(async db =>
549543

550544
await _testContext.RunOnDatabaseAsync(async db =>
551545
{
552-
SupportTicket dbTicket = await db.SupportTickets.Include(supportTicket => supportTicket.ProductFamily).FirstAsync(supportTicket => supportTicket.Id == ticket.Id);
546+
SupportTicket dbTicket = await db.SupportTickets.Include(supportTicket => supportTicket.ProductFamily)
547+
.FirstAsync(supportTicket => supportTicket.Id == ticket.Id);
548+
553549
dbTicket.ProductFamily!.Id.Should().Be(family.Id);
554550
});
555551
}
@@ -620,7 +616,9 @@ await _testContext.RunOnDatabaseAsync(async db =>
620616

621617
await _testContext.RunOnDatabaseAsync(async db =>
622618
{
623-
ProductFamily dbFamily = await db.ProductFamilies.Include(productFamily => productFamily.Tickets).FirstAsync(productFamily => productFamily.Id == family.Id);
619+
ProductFamily dbFamily = await db.ProductFamilies.Include(productFamily => productFamily.Tickets)
620+
.FirstAsync(productFamily => productFamily.Id == family.Id);
621+
624622
dbFamily.Tickets.Should().ContainSingle(supportTicket => supportTicket.Id == ticket1.Id);
625623
dbFamily.Tickets.Should().ContainSingle(supportTicket => supportTicket.Id == ticket2.Id);
626624
});
@@ -692,7 +690,9 @@ await _testContext.RunOnDatabaseAsync(async db =>
692690

693691
await _testContext.RunOnDatabaseAsync(async db =>
694692
{
695-
ProductFamily dbFamily = await db.ProductFamilies.Include(productFamily => productFamily.Tickets).FirstAsync(productFamily => productFamily.Id == family.Id);
693+
ProductFamily dbFamily = await db.ProductFamilies.Include(productFamily => productFamily.Tickets)
694+
.FirstAsync(productFamily => productFamily.Id == family.Id);
695+
696696
dbFamily.Tickets.Should().ContainSingle(supportTicket => supportTicket.Id == ticket1.Id);
697697
dbFamily.Tickets.Should().ContainSingle(supportTicket => supportTicket.Id == ticket2.Id);
698698
});
@@ -764,7 +764,9 @@ await _testContext.RunOnDatabaseAsync(async db =>
764764

765765
await _testContext.RunOnDatabaseAsync(async db =>
766766
{
767-
ProductFamily dbFamily = await db.ProductFamilies.Include(productFamily => productFamily.Tickets).FirstAsync(productFamily => productFamily.Id == family.Id);
767+
ProductFamily dbFamily = await db.ProductFamilies.Include(productFamily => productFamily.Tickets)
768+
.FirstAsync(productFamily => productFamily.Id == family.Id);
769+
768770
dbFamily.Tickets.Should().NotContain(supportTicket => supportTicket.Id == ticket1.Id);
769771
dbFamily.Tickets.Should().ContainSingle(supportTicket => supportTicket.Id == ticket2.Id);
770772
});

0 commit comments

Comments
 (0)