示例#1
0
 public static Faker <RegisterApiResourceCommand> GenerateRegisterApiResourceCommand()
 {
     return(new Faker <RegisterApiResourceCommand>().CustomInstantiator(faker =>
                                                                        new RegisterApiResourceCommand(ApiResourceFaker.GenerateApiResource().Generate())
                                                                        ));
 }
示例#2
0
 public static Faker <UpdateApiResourceCommand> GenerateUpdateApiResourceCommand(string oldResourceName = null)
 {
     return(new Faker <UpdateApiResourceCommand>().CustomInstantiator(faker =>
                                                                      new UpdateApiResourceCommand(ApiResourceFaker.GenerateApiResource().Generate(), oldResourceName ?? faker.Internet.DomainName())
                                                                      ));
 }