@@ -16,41 +16,42 @@ internal sealed class MetaFakers
1616 . MakeDeterministic ( )
1717 . RuleFor ( supportTicket => supportTicket . Description , faker => faker . Lorem . Paragraph ( ) ) ) ;
1818
19- private readonly Lazy < Faker < Dictionary < string , object > > > _lazyDocumentMetaFaker = new ( ( ) => new Faker < Dictionary < string , object > > ( )
19+ private readonly Lazy < Faker < Dictionary < string , object ? > > > _lazyDocumentMetaFaker = new ( ( ) => new Faker < Dictionary < string , object ? > > ( )
2020 . MakeDeterministic ( )
21- . CustomInstantiator ( faker => new Dictionary < string , object >
21+ . CustomInstantiator ( faker => new Dictionary < string , object ? >
2222 {
23- [ "requestId" ] = faker . Random . Guid ( ) . ToString ( )
23+ [ "requestId" ] = faker . Random . Guid ( ) . ToString ( ) ,
24+ [ "isUrgent" ] = faker . Random . Bool ( )
2425 } ) ) ;
2526
26- private readonly Lazy < Faker < Dictionary < string , object > > > _lazyResourceMetaFaker = new ( ( ) => new Faker < Dictionary < string , object > > ( )
27+ private readonly Lazy < Faker < Dictionary < string , object ? > > > _lazyResourceMetaFaker = new ( ( ) => new Faker < Dictionary < string , object ? > > ( )
2728 . MakeDeterministic ( )
28- . CustomInstantiator ( faker => new Dictionary < string , object >
29+ . CustomInstantiator ( faker => new Dictionary < string , object ? >
2930 {
3031 [ "editedBy" ] = faker . Internet . UserName ( ) ,
3132 [ "revision" ] = faker . Random . Int ( 1 , 10 )
3233 } ) ) ;
3334
34- private readonly Lazy < Faker < Dictionary < string , object > > > _lazyRelationshipMetaFaker = new ( ( ) => new Faker < Dictionary < string , object > > ( )
35+ private readonly Lazy < Faker < Dictionary < string , object ? > > > _lazyRelationshipMetaFaker = new ( ( ) => new Faker < Dictionary < string , object ? > > ( )
3536 . MakeDeterministic ( )
36- . CustomInstantiator ( faker => new Dictionary < string , object >
37+ . CustomInstantiator ( faker => new Dictionary < string , object ? >
3738 {
3839 [ "source" ] = faker . PickRandom ( "ui" , "api" , "import" ) ,
3940 [ "confidence" ] = faker . Random . Double ( 0.1 , 1.0 )
4041 } ) ) ;
4142
42- private readonly Lazy < Faker < Dictionary < string , object > > > _lazyRelationshipIdentifierMetaFaker = new ( ( ) => new Faker < Dictionary < string , object > > ( )
43+ private readonly Lazy < Faker < Dictionary < string , object ? > > > _lazyRelationshipIdentifierMetaFaker = new ( ( ) => new Faker < Dictionary < string , object ? > > ( )
4344 . MakeDeterministic ( )
44- . CustomInstantiator ( faker => new Dictionary < string , object >
45+ . CustomInstantiator ( faker => new Dictionary < string , object ? >
4546 {
4647 [ "index" ] = faker . IndexFaker ,
4748 [ "optionalNote" ] = faker . Lorem . Word ( )
4849 } ) ) ;
4950
5051 public Faker < ProductFamily > ProductFamily => _lazyProductFamilyFaker . Value ;
5152 public Faker < SupportTicket > SupportTicket => _lazySupportTicketFaker . Value ;
52- public Faker < Dictionary < string , object > > DocumentMeta => _lazyDocumentMetaFaker . Value ;
53- public Faker < Dictionary < string , object > > ResourceMeta => _lazyResourceMetaFaker . Value ;
54- public Faker < Dictionary < string , object > > RelationshipMeta => _lazyRelationshipMetaFaker . Value ;
55- public Faker < Dictionary < string , object > > RelationshipIdentifierMeta => _lazyRelationshipIdentifierMetaFaker . Value ;
53+ public Faker < Dictionary < string , object ? > > DocumentMeta => _lazyDocumentMetaFaker . Value ;
54+ public Faker < Dictionary < string , object ? > > ResourceMeta => _lazyResourceMetaFaker . Value ;
55+ public Faker < Dictionary < string , object ? > > RelationshipMeta => _lazyRelationshipMetaFaker . Value ;
56+ public Faker < Dictionary < string , object ? > > RelationshipIdentifierMeta => _lazyRelationshipIdentifierMetaFaker . Value ;
5657}
0 commit comments