public async Task Can_get_previous_returns_null_if_only_same()
        {
            IMongoDatabase  database = MongoForTest.Provider.GetDatabase();
            var             repo     = new ProviderSessionMongoRepository(database);
            ProviderSession session  = BuildDummySession();
            await repo.AddAsync(session);

            var result = await repo.GetPreviousAsync(session);

            result.Should().BeNull();
        }
        public async Task Can_get_previous()
        {
            IMongoDatabase  database = MongoForTest.Provider.GetDatabase();
            var             repo     = new ProviderSessionMongoRepository(database);
            ProviderSession session  = BuildDummySession();
            await repo.AddAsync(session);

            ProviderSession session2 = BuildDummySession(Keccak.Zero);
            var             result   = await repo.GetPreviousAsync(session2);

            result.Should().BeEquivalentTo(session);
        }