@@ -190,7 +190,7 @@ private static IRecipeStep CreateStep(Type stepType)
190190 [ InlineData ( typeof ( MediaProfilesRecipeStep ) , "MediaProfiles" ) ]
191191 [ InlineData ( typeof ( RolesRecipeStep ) , "Roles" ) ]
192192 [ InlineData ( typeof ( UsersRecipeStep ) , "Users" ) ]
193- [ InlineData ( typeof ( SettingsRecipeStep ) , "Settings " ) ]
193+ [ InlineData ( typeof ( SettingsRecipeStep ) , "settings " ) ]
194194 [ InlineData ( typeof ( CustomUserSettingsRecipeStep ) , "custom-user-settings" ) ]
195195 [ InlineData ( typeof ( CustomSettingsRecipeStep ) , "custom-settings" ) ]
196196 [ InlineData ( typeof ( AzureADSettingsRecipeStep ) , "AzureADSettings" ) ]
@@ -296,7 +296,7 @@ public void Name_ReturnsExpected(Type stepType, string expectedName)
296296 public async Task GetSchemaAsync_ProducesValidSerializableSchema ( Type stepType )
297297 {
298298 var step = CreateStep ( stepType ) ;
299- var schema = await step . GetSchemaAsync ( ) ;
299+ var schema = await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ;
300300 Assert . NotNull ( schema ) ;
301301
302302 var json = JsonSerializer . Serialize ( schema ) ;
@@ -362,16 +362,16 @@ public async Task GetSchemaAsync_ProducesValidSerializableSchema(Type stepType)
362362 public async Task GetSchemaAsync_CachesResult ( Type stepType )
363363 {
364364 var step = CreateStep ( stepType ) ;
365- var first = await step . GetSchemaAsync ( ) ;
366- var second = await step . GetSchemaAsync ( ) ;
365+ var first = await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ;
366+ var second = await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ;
367367 Assert . Same ( first , second ) ;
368368 }
369369
370370 [ Fact ]
371371 public async Task FeatureRecipeStep_SchemaContainsEnableDisableAndFeatureEnums ( )
372372 {
373373 var step = new FeatureRecipeStep ( CreateShellFeaturesManager ( ) ) ;
374- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
374+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
375375 Assert . Contains ( "\" enable\" " , json ) ;
376376 Assert . Contains ( "\" disable\" " , json ) ;
377377 Assert . Contains ( "\" OrchardCore.Contents\" " , json ) ;
@@ -382,7 +382,7 @@ public async Task FeatureRecipeStep_SchemaContainsEnableDisableAndFeatureEnums()
382382 public async Task ThemesRecipeStep_SchemaContainsSiteAdminAndThemeEnums ( )
383383 {
384384 var step = new ThemesRecipeStep ( new StubFeatureSchemaProvider ( ) ) ;
385- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
385+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
386386 Assert . Contains ( "\" site\" " , json ) ;
387387 Assert . Contains ( "\" admin\" " , json ) ;
388388 Assert . Contains ( "\" TheAdmin\" " , json ) ;
@@ -393,7 +393,7 @@ public async Task ThemesRecipeStep_SchemaContainsSiteAdminAndThemeEnums()
393393 public async Task ContentRecipeStep_SchemaRequiresDataWithContentType ( )
394394 {
395395 var step = new ContentRecipeStep ( CreateContentDefinitionManager ( ) ) ;
396- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
396+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
397397 Assert . Contains ( "\" ContentType\" " , json ) ;
398398 Assert . Contains ( "\" data\" " , json ) ;
399399 }
@@ -402,7 +402,7 @@ public async Task ContentRecipeStep_SchemaRequiresDataWithContentType()
402402 public async Task RolesRecipeStep_SchemaContainsPermissionBehavior ( )
403403 {
404404 var step = new RolesRecipeStep ( CreatePermissionService ( ) ) ;
405- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
405+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
406406 Assert . Contains ( "\" PermissionBehavior\" " , json ) ;
407407 Assert . Contains ( "\" Add\" " , json ) ;
408408 Assert . Contains ( "\" Replace\" " , json ) ;
@@ -413,7 +413,7 @@ public async Task RolesRecipeStep_SchemaContainsPermissionBehavior()
413413 public async Task MediaRecipeStep_SchemaContainsSourceOptions ( )
414414 {
415415 var step = new MediaRecipeStep ( ) ;
416- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
416+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
417417 Assert . Contains ( "\" TargetPath\" " , json ) ;
418418 Assert . Contains ( "\" SourcePath\" " , json ) ;
419419 Assert . Contains ( "\" SourceUrl\" " , json ) ;
@@ -424,7 +424,7 @@ public async Task MediaRecipeStep_SchemaContainsSourceOptions()
424424 public async Task AdminMenuRecipeStep_SchemaContainsMenuItems ( )
425425 {
426426 var step = new AdminMenuRecipeStep ( ) ;
427- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
427+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
428428 Assert . Contains ( "\" MenuItems\" " , json ) ;
429429 Assert . Contains ( "\" ContentType\" " , json ) ;
430430 }
@@ -433,7 +433,7 @@ public async Task AdminMenuRecipeStep_SchemaContainsMenuItems()
433433 public async Task DeleteContentDefinitionRecipeStep_SchemaHasStringArrays ( )
434434 {
435435 var step = new DeleteContentDefinitionRecipeStep ( ) ;
436- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
436+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
437437 Assert . Contains ( "\" ContentTypes\" " , json ) ;
438438 Assert . Contains ( "\" ContentParts\" " , json ) ;
439439 }
@@ -442,7 +442,7 @@ public async Task DeleteContentDefinitionRecipeStep_SchemaHasStringArrays()
442442 public async Task ReplaceContentDefinitionRecipeStep_SchemaMatchesExpandedContentDefinitionShape ( )
443443 {
444444 var step = new ReplaceContentDefinitionRecipeStep ( CreateContentDefinitionSchemaDefinitions ( ) , CreateContentSchemaProvider ( ) ) ;
445- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
445+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
446446
447447 Assert . Contains ( "\" ContentTypePartDefinitionRecords\" " , json ) ;
448448 Assert . Contains ( "\" ContentPartFieldDefinitionRecords\" " , json ) ;
@@ -455,7 +455,7 @@ public async Task ReplaceContentDefinitionRecipeStep_SchemaMatchesExpandedConten
455455 public async Task CustomUserSettingsRecipeStep_SchemaAllowsNamedCollectionsOfUserSettings ( )
456456 {
457457 var step = new CustomUserSettingsRecipeStep ( ) ;
458- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
458+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
459459
460460 Assert . Contains ( "\" userId\" " , json ) ;
461461 Assert . Contains ( "\" user-custom-user-settings\" " , json ) ;
@@ -466,7 +466,7 @@ public async Task CustomUserSettingsRecipeStep_SchemaAllowsNamedCollectionsOfUse
466466 public async Task OpenIdClientSettingsRecipeStep_SchemaContainsValidatedResponseEnums ( )
467467 {
468468 var step = new OpenIdClientSettingsRecipeStep ( ) ;
469- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
469+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
470470
471471 Assert . Contains ( "\" ResponseType\" " , json ) ;
472472 Assert . Contains ( "\" code id_token token\" " , json ) ;
@@ -478,7 +478,7 @@ public async Task OpenIdClientSettingsRecipeStep_SchemaContainsValidatedResponse
478478 public async Task OpenIdApplicationRecipeStep_SchemaContainsKnownClientAndConsentOptions ( )
479479 {
480480 var step = new OpenIdApplicationRecipeStep ( ) ;
481- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
481+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
482482
483483 Assert . Contains ( "\" ConsentType\" " , json ) ;
484484 Assert . Contains ( "\" explicit\" " , json ) ;
@@ -490,7 +490,7 @@ public async Task OpenIdApplicationRecipeStep_SchemaContainsKnownClientAndConsen
490490 public async Task UsersRecipeStep_SchemaContainsUserShape ( )
491491 {
492492 var step = new UsersRecipeStep ( ) ;
493- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
493+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
494494
495495 Assert . Contains ( "\" Users\" " , json ) ;
496496 Assert . Contains ( "\" UserName\" " , json ) ;
@@ -501,7 +501,7 @@ public async Task UsersRecipeStep_SchemaContainsUserShape()
501501 public async Task SettingsRecipeStep_SchemaContainsBuiltInAndContributedSettings ( )
502502 {
503503 var step = new SettingsRecipeStep ( CreateAllSiteSettingsSchemaDefinitions ( ) ) ;
504- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
504+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
505505
506506 Assert . Contains ( "\" HomeRoute\" " , json ) ;
507507 Assert . Contains ( "\" AdminSettings\" " , json ) ;
@@ -513,7 +513,7 @@ public async Task SettingsRecipeStep_SchemaContainsBuiltInAndContributedSettings
513513 public async Task TranslationsRecipeStep_SchemaContainsNewFormatTranslationEntries ( )
514514 {
515515 var step = new TranslationsRecipeStep ( ) ;
516- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
516+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
517517
518518 Assert . Contains ( "\" translations\" " , json ) ;
519519 Assert . Contains ( "\" culture\" " , json ) ;
@@ -524,7 +524,7 @@ public async Task TranslationsRecipeStep_SchemaContainsNewFormatTranslationEntri
524524 public async Task DynamicDataTranslationsRecipeStep_SchemaContainsLegacyTranslationEntries ( )
525525 {
526526 var step = new DynamicDataTranslationsRecipeStep ( ) ;
527- var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( ) ) ;
527+ var json = JsonSerializer . Serialize ( await step . GetSchemaAsync ( TestContext . Current . CancellationToken ) ) ;
528528
529529 Assert . Contains ( "\" Translations\" " , json ) ;
530530 Assert . Contains ( "\" Translation\" " , json ) ;
@@ -551,28 +551,28 @@ private static IContentDefinitionSchemaDefinition[] CreateContentDefinitionSchem
551551 . ToArray ( ) ;
552552
553553 private static StubContentSchemaProvider CreateContentSchemaProvider ( )
554- => new StubContentSchemaProvider (
554+ => new (
555555 CreateContentDefinitionSchemaDefinitions ( )
556556 . Select ( definition => definition . Name )
557557 . Distinct ( StringComparer . OrdinalIgnoreCase )
558558 . Order ( StringComparer . OrdinalIgnoreCase )
559559 . ToArray ( ) ,
560- [
561- "BooleanField" ,
562- "ContentPickerField" ,
563- "DateField" ,
564- "DateTimeField" ,
565- "HtmlField" ,
566- "LinkField" ,
567- "LocalizationSetContentPickerField" ,
568- "MediaField" ,
569- "MultiTextField" ,
570- "NumericField" ,
571- "TaxonomyField" ,
572- "TextField" ,
573- "TimeField" ,
574- "UserPickerField" ,
575- "YoutubeField" ,
560+ [
561+ "BooleanField" ,
562+ "ContentPickerField" ,
563+ "DateField" ,
564+ "DateTimeField" ,
565+ "HtmlField" ,
566+ "LinkField" ,
567+ "LocalizationSetContentPickerField" ,
568+ "MediaField" ,
569+ "MultiTextField" ,
570+ "NumericField" ,
571+ "TaxonomyField" ,
572+ "TextField" ,
573+ "TimeField" ,
574+ "UserPickerField" ,
575+ "YoutubeField" ,
576576 ] ) ;
577577
578578 private sealed class StubContentSchemaProvider (
0 commit comments