@@ -59,7 +59,7 @@ public void GetBatchNodeFileByTaskParametersTest()
59
59
60
60
// Build a NodeFile instead of querying the service on a List NodeFile call
61
61
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( new string [ ] { cmdlet . Name } ) ;
62
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
62
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
63
63
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
64
64
65
65
Assert . Throws < ArgumentException > ( ( ) => cmdlet . ExecuteCmdlet ( ) ) ;
@@ -92,7 +92,7 @@ public void GetBatchNodeFileByTaskTest()
92
92
93
93
// Build a NodeFile instead of querying the service on a Get NodeFile Properties call
94
94
NodeFileGetPropertiesResponse response = BatchTestHelpers . CreateNodeFileGetPropertiesResponse ( cmdlet . Name ) ;
95
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileGetPropertiesParameters , NodeFileGetPropertiesResponse > ( response ) ;
95
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileGetPropertiesParameters , NodeFileGetPropertiesResponse > ( response ) ;
96
96
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
97
97
98
98
// Setup the cmdlet to write pipeline output to a list that can be examined later
@@ -122,7 +122,7 @@ public void ListBatchNodeFilesByTaskByODataFilterTest()
122
122
123
123
// Build some NodeFiles instead of querying the service on a List NodeFiles call
124
124
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( namesOfConstructedNodeFiles ) ;
125
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
125
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
126
126
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
127
127
128
128
// Setup the cmdlet to write pipeline output to a list that can be examined later
@@ -160,7 +160,7 @@ public void ListBatchNodeFilesByTaskWithoutFiltersTest()
160
160
161
161
// Build some NodeFiles instead of querying the service on a List NodeFiles call
162
162
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( namesOfConstructedNodeFiles ) ;
163
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
163
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
164
164
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
165
165
166
166
// Setup the cmdlet to write pipeline output to a list that can be examined later
@@ -203,7 +203,7 @@ public void ListNodeFilesByTaskMaxCountTest()
203
203
204
204
// Build some NodeFiles instead of querying the service on a List NodeFiles call
205
205
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( namesOfConstructedNodeFiles ) ;
206
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
206
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
207
207
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
208
208
209
209
// Setup the cmdlet to write pipeline output to a list that can be examined later
@@ -240,7 +240,7 @@ public void GetBatchNodeFileByComputeNodeParametersTest()
240
240
241
241
// Build a NodeFile instead of querying the service on a List NodeFile call
242
242
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( new string [ ] { cmdlet . Name } ) ;
243
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
243
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
244
244
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
245
245
246
246
Assert . Throws < ArgumentException > ( ( ) => cmdlet . ExecuteCmdlet ( ) ) ;
@@ -266,7 +266,7 @@ public void GetBatchNodeFileByComputeNodeTest()
266
266
267
267
// Build a NodeFile instead of querying the service on a Get NodeFile Properties call
268
268
NodeFileGetPropertiesResponse response = BatchTestHelpers . CreateNodeFileGetPropertiesResponse ( cmdlet . Name ) ;
269
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileGetPropertiesParameters , NodeFileGetPropertiesResponse > ( response ) ;
269
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileGetPropertiesParameters , NodeFileGetPropertiesResponse > ( response ) ;
270
270
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
271
271
272
272
// Setup the cmdlet to write pipeline output to a list that can be examined later
@@ -296,7 +296,7 @@ public void ListBatchNodeFilesByComputeNodeByODataFilterTest()
296
296
297
297
// Build some NodeFiles instead of querying the service on a List NodeFiles call
298
298
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( namesOfConstructedNodeFiles ) ;
299
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
299
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
300
300
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
301
301
302
302
// Setup the cmdlet to write pipeline output to a list that can be examined later
@@ -334,7 +334,7 @@ public void ListBatchNodeFilesByComputeNodeWithoutFiltersTest()
334
334
335
335
// Build some NodeFiles instead of querying the service on a List NodeFiles call
336
336
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( namesOfConstructedNodeFiles ) ;
337
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
337
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
338
338
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
339
339
340
340
// Setup the cmdlet to write pipeline output to a list that can be examined later
@@ -377,7 +377,7 @@ public void ListNodeFilesByComputeNodeMaxCountTest()
377
377
378
378
// Build some NodeFiles instead of querying the service on a List NodeFiles call
379
379
NodeFileListResponse response = BatchTestHelpers . CreateNodeFileListResponse ( namesOfConstructedNodeFiles ) ;
380
- RequestInterceptor interceptor = BatchTestHelpers . CreateNoOpInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
380
+ RequestInterceptor interceptor = BatchTestHelpers . CreateFakeServiceResponseInterceptor < NodeFileListParameters , NodeFileListResponse > ( response ) ;
381
381
cmdlet . AdditionalBehaviors = new List < BatchClientBehavior > ( ) { interceptor } ;
382
382
383
383
// Setup the cmdlet to write pipeline output to a list that can be examined later
0 commit comments