コード例 #1
0
 public static Faker <RegisterIdentityResourceCommand> GenerateRegisterCommand(IdentityResource id = null)
 {
     return(new Faker <RegisterIdentityResourceCommand>().CustomInstantiator(faker =>
                                                                             new RegisterIdentityResourceCommand(IdentityResourceFaker.GenerateIdentiyResource().Generate())));
 }
コード例 #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())));
 }