Esempio n. 1
0
 public static Faker <RegisterIdentityResourceCommand> GenerateRegisterCommand(IdentityResource id = null)
 {
     return(new Faker <RegisterIdentityResourceCommand>().CustomInstantiator(faker =>
                                                                             new RegisterIdentityResourceCommand(IdentityResourceFaker.GenerateIdentiyResource().Generate())));
 }
Esempio n. 2
0
 public static Faker <UpdateIdentityResourceCommand> GenerateUpdateCommand(IdentityResource id = null, string oldIdentityResourceName = null)
 {
     return(new Faker <UpdateIdentityResourceCommand>().CustomInstantiator(faker =>
                                                                           new UpdateIdentityResourceCommand(IdentityResourceFaker.GenerateIdentiyResource().Generate(), oldIdentityResourceName ?? faker.Internet.DomainName())));
 }