Skip to content

Commit 0275d1b

Browse files
Merge pull request #40 Fixes regarding to copilot review
- use _ = _factory.Server; to clearly indicate the variable is intentionally - using the more modern collection expression syntax for consistency in EdgeSitemapProxyFixture - Refactor RequestHeadersValidationFixture to implement similar constructor pattern like other fixtures
2 parents f99bd36 + 0d5ba60 commit 0275d1b

21 files changed

Lines changed: 30 additions & 24 deletions

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/ComplexModelBindingFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public ComplexModelBindingFixture(TestWebApplicationFactory<TestWebApplicationPr
4848
});
4949

5050
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
51-
TestServer startedServer = _factory.Server;
51+
_ = _factory.Server;
5252
}
5353

5454
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/CustomModelContextBindingFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public CustomModelContextBindingFixture(TestWebApplicationFactory<TestWebApplica
4949
});
5050

5151
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
52-
TestServer startedServer = _factory.Server;
52+
_ = _factory.Server;
5353
}
5454

5555
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/CustomResolverBindingFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public CustomResolverBindingFixture(TestWebApplicationFactory<TestWebApplication
5050
});
5151

5252
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
53-
TestServer startedServer = _factory.Server;
53+
_ = _factory.Server;
5454
}
5555

5656
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/ModelBindingErrorHandlingFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public ModelBindingErrorHandlingFixture(TestWebApplicationFactory<TestWebApplica
4848
});
4949

5050
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
51-
TestServer startedServer = _factory.Server;
51+
_ = _factory.Server;
5252
}
5353

5454
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Binding/ViewFieldsBindingFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public ViewFieldsBindingFixture(TestWebApplicationFactory<TestWebApplicationProg
4848
});
4949

5050
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
51-
TestServer startedServer = _factory.Server;
51+
_ = _factory.Server;
5252
}
5353

5454
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/CustomRenderTypes/LoggingComponentRendererFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public LoggingComponentRendererFixture(TestWebApplicationFactory<TestWebApplicat
4949
});
5050

5151
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
52-
TestServer startedServer = _factory.Server;
52+
_ = _factory.Server;
5353
}
5454

5555
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/CustomRenderTypes/MultipleComponentsAddedFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public MultipleComponentsAddedFixture(TestWebApplicationFactory<TestWebApplicati
4949
});
5050

5151
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
52-
TestServer startedServer = _factory.Server;
52+
_ = _factory.Server;
5353
}
5454

5555
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/CustomRenderTypes/PartialViewRendererFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public PartialViewRendererFixture(TestWebApplicationFactory<TestWebApplicationPr
4848
});
4949

5050
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
51-
TestServer startedServer = _factory.Server;
51+
_ = _factory.Server;
5252
}
5353

5454
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Pages/PagesEditingFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public PagesEditingFixture(TestWebApplicationFactory<TestWebApplicationProgram>
6363
});
6464

6565
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
66-
TestServer startedServer = _factory.Server;
66+
_ = _factory.Server;
6767
}
6868

6969
[Fact]

tests/Sitecore.AspNetCore.SDK.RenderingEngine.Integration.Tests/Fixtures/Pages/PagesSetupRoutingFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public PagesSetupRoutingFixture(TestWebApplicationFactory<TestWebApplicationProg
5757
});
5858

5959
// Accessing _factory.Server forces the TestServer to start. The variable is unused; this is intentional.
60-
TestServer startedServer = _factory.Server;
60+
_ = _factory.Server;
6161
}
6262

6363
[Fact]

0 commit comments

Comments
 (0)