public async Task verify_that_null_correctly_updates()
        {
            var sut = CreateSut();
            await sut.InsertAsync(new SampleReadModel4()
            {
                Id = "1", Name = "A Name"
            }).ConfigureAwait(false);

            SampleReadModel4 readModel = new SampleReadModel4()
            {
                Id = "2", Name = null
            };
            await sut.InsertAsync(readModel).ConfigureAwait(false);

            await sut.FindByPropertyAsListAsync(e => e.Name, null).ConfigureAwait(false); //Forces index creation.

            readModel.Name = "Another Name";
            await sut.SaveWithVersionAsync(readModel, readModel.Version).ConfigureAwait(false);

            var element = await sut.FindByPropertyAsListAsync(e => e.Name, null).ConfigureAwait(false);

            Assert.That(element, Is.Empty);

            element = await sut.FindByPropertyAsListAsync(e => e.Name, "Another Name").ConfigureAwait(false);

            Assert.That(element.Single().Id, Is.EqualTo(readModel.Id));
        }
        public void verify_that_null_correctly_updates()
        {
            var sut = CreateSut();

            sut.Insert(new SampleReadModel4()
            {
                Id = "1", Name = "A Name"
            });
            SampleReadModel4 readModel = new SampleReadModel4()
            {
                Id = "2", Name = null
            };

            sut.Insert(readModel);
            sut.FindManyByProperty(e => e.Name, null); //Forces index creation.

            readModel.Name = "Another Name";
            sut.SaveWithVersion(readModel, readModel.Version);
            var element = sut.FindManyByProperty(e => e.Name, null);

            Assert.That(element, Is.Empty);

            element = sut.FindManyByProperty(e => e.Name, "Another Name");
            Assert.That(element.Single().Id, Is.EqualTo(readModel.Id));
        }