예제 #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())));
 }