File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
test/Elmah.Io.Umbraco.Test Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 44 <TargetFrameworks >net6.0;net7.0;net8.0;net9.0</TargetFrameworks >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
7+ <LangVersion >12.0</LangVersion >
78 </PropertyGroup >
89
910 <ItemGroup >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public void SetUp()
5353 public async Task CanNotifyHealthy ( )
5454 {
5555 // Arrange
56- var checks = await HealthCheckResults . Create ( new List < HealthCheck > ( ) ) ;
56+ var checks = await HealthCheckResults . Create ( [ ] ) ;
5757
5858 // Act
5959 await sut . SendAsync ( checks ) ;
@@ -66,10 +66,10 @@ public async Task CanNotifyHealthy()
6666 public async Task CanNotifyUnhealthy ( )
6767 {
6868 // Arrange
69- var checks = await HealthCheckResults . Create ( new List < HealthCheck >
70- {
69+ var checks = await HealthCheckResults . Create (
70+ [
7171 new TestHealthCheck ( )
72- } ) ;
72+ ] ) ;
7373 var markdown = checks . ResultsAsMarkDown ( HealthCheckNotificationVerbosity . Summary ) ;
7474
7575 // Act
@@ -90,13 +90,13 @@ public override HealthCheckStatus ExecuteAction(HealthCheckAction action)
9090
9191 public override Task < IEnumerable < HealthCheckStatus > > GetStatus ( )
9292 {
93- return Task . FromResult < IEnumerable < HealthCheckStatus > > ( new List < HealthCheckStatus >
94- {
93+ return Task . FromResult < IEnumerable < HealthCheckStatus > > (
94+ [
9595 new ( "Oh no" )
9696 {
9797 ResultType = StatusResultType . Error
9898 }
99- } ) ;
99+ ] ) ;
100100 }
101101 }
102102}
You can’t perform that action at this time.
0 commit comments