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