Hi,
In order to use a custom command target resolver during tests i came up with this:
`
fixture = Fixtures.newGivenWhenThenFixture(BusinessDomainAR.class);
AggregateAnnotationCommandHandler aggregateAnnotationCommandHandler =
new AggregateAnnotationCommandHandler(BusinessDomainAR.class, fixture.getRepository(),
new CustomCommandTargetResolver.ForBusinessDomain());
fixture.registerCommandHandler(AddAdministrator.class, aggregateAnnotationCommandHandler);
fixture.registerCommandHandler(RemoveAdministrator.class, aggregateAnnotationCommandHandler);
// register all other command classes used in the AR
…
`
Is there a way that allows me to do this without registering each command class individually ?
Thanks,
Jorg