public async Task Should_create_events_from_snapshots()
        {
            var trigger = new ContentChangedTriggerV2();

            A.CallTo(() => contentRepository.StreamAll(appId.Id, null))
            .Returns(new List <ContentEntity>
            {
                new ContentEntity {
                    SchemaId = schemaMatch
                },
                new ContentEntity {
                    SchemaId = schemaMatch
                }
            }.ToAsyncEnumerable());

            var result = await sut.CreateSnapshotEvents(trigger, appId.Id).ToListAsync();

            var typed = result.OfType <EnrichedContentEvent>().ToList();

            Assert.Equal(2, typed.Count);
            Assert.Equal(2, typed.Count(x => x.Type == EnrichedContentEventType.Created));
        }