use of io.spine.server.projection.ProjectionRepository in project core-java by SpineEventEngine.
the class StandPostShould method projectionRepositoryDispatch.
private static BoundedContextAction projectionRepositoryDispatch() {
return new BoundedContextAction() {
@Override
public void perform(BoundedContext context) {
// Init repository
final ProjectionRepository repository = Given.projectionRepo();
repository.initStorage(storageFactory(context.isMultitenant()));
// Dispatch an update from projection repo
repository.dispatch(EventEnvelope.of(Given.validEvent()));
}
};
}
Aggregations