public static RavenDBSynchronizedStorageSession CreateSynchronizedStorageSession(this RavenDBPersistenceTestBase testBase)
    {
        var session             = testBase.OpenAsyncSession();
        var synchronizedSession = new RavenDBSynchronizedStorageSession(session);

        return(synchronizedSession);
    }
    public static ContextBag CreateContextWithAsyncSessionPresent(this RavenDBPersistenceTestBase testBase, out IAsyncDocumentSession session)
    {
        var context = new ContextBag();

        session = testBase.OpenAsyncSession();
        context.Set(session);
        return(context);
    }