function let(Id $aggregateId) { $aggregateId->__toString()->willReturn('id'); $this->beConstructedWith($aggregateId); }
function it_does_not_get_any_aggregate(Id $aggregateId) { $aggregateId->__toString()->willReturn('id'); $this->shouldThrow(AggregateDoesNotExistException::class)->duringStreamOfId($aggregateId); }