@@ -44,7 +44,7 @@ public async Task LocalCopyIsDone_ForwardsMetrics_AndReturnsOk()
4444 var request = new FakeHttpRequestData ( context ) ;
4545 var body = new SynchronizationActionRequest
4646 {
47- ActionsGroupIds = new List < string > { "A1" } ,
47+ ActionsGroupIds = [ "A1" ] ,
4848 NodeId = "N1" ,
4949 ActionMetricsByActionId = new Dictionary < string , SynchronizationActionMetrics >
5050 {
@@ -89,7 +89,7 @@ public async Task DateIsCopied_ReturnsOk_AndSendsRequest()
8989 var request = new FakeHttpRequestData ( context ) ;
9090 var body = new SynchronizationActionRequest
9191 {
92- ActionsGroupIds = new List < string > { "B1" } ,
92+ ActionsGroupIds = [ "B1" ] ,
9393 NodeId = "N2"
9494 } ;
9595 var json = ByteSync . Common . Controls . Json . JsonHelper . Serialize ( body ) ;
@@ -128,14 +128,14 @@ public async Task StartSynchronization_ReturnsOk_AndSendsRequest()
128128 var body = new SynchronizationStartRequest
129129 {
130130 SessionId = "S3" ,
131- ActionsGroupDefinitions = new List < ByteSync . Common . Business . Actions . ActionsGroupDefinition > ( )
132- {
131+ ActionsGroupDefinitions =
132+ [
133133 new ( )
134134 {
135135 ActionsGroupId = "G1" ,
136136 FileSystemType = ByteSync . Common . Business . Inventories . FileSystemTypes . File
137137 }
138- }
138+ ]
139139 } ;
140140 var json = ByteSync . Common . Controls . Json . JsonHelper . Serialize ( body ) ;
141141 await using ( var writer = new StreamWriter ( request . Body , Encoding . UTF8 , 1024 , leaveOpen : true ) )
@@ -172,7 +172,7 @@ public async Task FileOrDirectoryIsDeleted_ReturnsOk_AndSendsRequest()
172172 var request = new FakeHttpRequestData ( context ) ;
173173 var body = new SynchronizationActionRequest
174174 {
175- ActionsGroupIds = new List < string > { "C1" } ,
175+ ActionsGroupIds = [ "C1" ] ,
176176 NodeId = "N3"
177177 } ;
178178 var json = ByteSync . Common . Controls . Json . JsonHelper . Serialize ( body ) ;
@@ -210,7 +210,7 @@ public async Task DirectoryIsCreated_ReturnsOk_AndSendsRequest()
210210 var request = new FakeHttpRequestData ( context ) ;
211211 var body = new SynchronizationActionRequest
212212 {
213- ActionsGroupIds = new List < string > { "D1" } ,
213+ ActionsGroupIds = [ "D1" ] ,
214214 NodeId = "N4"
215215 } ;
216216 var json = ByteSync . Common . Controls . Json . JsonHelper . Serialize ( body ) ;
@@ -296,7 +296,7 @@ public async Task SynchronizationErrors_ReturnsOk_AndSendsRequest()
296296 var request = new FakeHttpRequestData ( context ) ;
297297 var body = new SynchronizationActionRequest
298298 {
299- ActionsGroupIds = new List < string > { "E1" } ,
299+ ActionsGroupIds = [ "E1" ] ,
300300 NodeId = "N5"
301301 } ;
302302 var json = ByteSync . Common . Controls . Json . JsonHelper . Serialize ( body ) ;
0 commit comments