public async Task MunicipalityEventInsertsRecord(MunicipalityEvent @event) { var id = Arrange(Produce.Guid()); var position = Arrange(Produce.Integer(100, 6000)); await Given() .Project(Generate.AtomEntry(@event, position) .Select(e => e .WithObjectId <Gemeente>(id)) .Generate(new Random())) .Then(async context => { var entry = await context.FindAsync <MunicipalitySyndicationItem>(id, (long)position); entry.Should().NotBeNull(); entry.MunicipalityId.Should().Be(id); entry.Position.Should().Be(position); }); }