@@ -194,7 +194,7 @@ public void SetWorkspace()
194
194
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
195
195
public void SetSomeCategories ( )
196
196
{
197
- cmdlet . Categories = new List < string > { "TestCategory1" } ;
197
+ cmdlet . Category = new List < string > { "TestCategory1" } ;
198
198
cmdlet . Enabled = false ;
199
199
cmdlet . MyInvocation . BoundParameters [ SetAzureRmDiagnosticSettingCommand . EnabledParamName ] = false ;
200
200
cmdlet . ExecuteCmdlet ( ) ;
@@ -216,14 +216,14 @@ public void SetSomeCategories()
216
216
Enabled = false
217
217
}
218
218
} ) ;
219
- cmdlet . Categories = new List < string > { "TestCategory3" } ;
219
+ cmdlet . Category = new List < string > { "TestCategory3" } ;
220
220
cmdlet . Enabled = false ;
221
221
cmdlet . MyInvocation . BoundParameters [ SetAzureRmDiagnosticSettingCommand . EnabledParamName ] = false ;
222
222
cmdlet . ExecuteCmdlet ( ) ;
223
223
224
224
// Testing the new metric categories must be known before the cmdlet can add them
225
225
expectedSettings . Metrics [ 0 ] . Enabled = false ;
226
- cmdlet . Categories = null ;
226
+ cmdlet . Category = null ;
227
227
cmdlet . MetricCategory = new List < string > { "MetricCat1" } ;
228
228
cmdlet . Enabled = false ;
229
229
cmdlet . MyInvocation . BoundParameters [ SetAzureRmDiagnosticSettingCommand . EnabledParamName ] = false ;
@@ -242,7 +242,7 @@ public void SetSomeCategories()
242
242
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
243
243
public void SetSomeTimeGrains ( )
244
244
{
245
- cmdlet . Timegrains = new List < string > { "PT1H" } ;
245
+ cmdlet . Timegrain = new List < string > { "PT1H" } ;
246
246
cmdlet . Enabled = false ;
247
247
cmdlet . MyInvocation . BoundParameters [ SetAzureRmDiagnosticSettingCommand . EnabledParamName ] = false ;
248
248
cmdlet . ExecuteCmdlet ( ) ;
0 commit comments