This test is to determine how the querysession behaves when used as part of a create/apply method on a projection.
public record Document([property: Identity] Guid DocumentId, string AuthorName, Guid AuthorId)
{
public static async Task<Document> Create(DocumentCreated @event, IQuerySession session)
{
var author = await session.Events.AggregateStreamAsync<User>(@event.AuthorId);