use of io.spine.server.aggregate.given.AggregatePartTestEnv.AnAggregateRoot in project core-java by SpineEventEngine.
the class AggregatePartClassShould method setUp.
@Before
public void setUp() {
ModelTests.clearModel();
final BoundedContext boundedContext = BoundedContext.newBuilder().build();
root = new AnAggregateRoot(boundedContext, newUuid());
}
use of io.spine.server.aggregate.given.AggregatePartTestEnv.AnAggregateRoot in project core-java by SpineEventEngine.
the class AggregatePartShould method setUp.
@Before
public void setUp() {
ModelTests.clearModel();
boundedContext = BoundedContext.newBuilder().build();
root = new AnAggregateRoot(boundedContext, newUuid());
taskPart = new TaskPart(root);
prepareAggregatePart();
taskDescriptionPart = new TaskDescriptionPart(root);
taskRepository = new TaskRepository();
final TaskDescriptionRepository taskDescriptionRepository = new TaskDescriptionRepository();
boundedContext.register(taskRepository);
boundedContext.register(taskDescriptionRepository);
}
Aggregations