private Task TimesOutAfterServerShutdown(Func <Context, IContentSession, ContentHash, Task <ResultBase> > requestFunc)
        {
            return(RunSessionTestAsync(ImplicitPin.None, async(context, session) =>
            {
                ITestServiceClientContentStore store = ((TestServiceClientContentSession)session).Store;
                await store.ShutdownServerAsync(context);

                var r = await requestFunc(context, session, ContentHash.Random());
                r.ErrorMessage.Should().Contain("service");
            }));
        }