public Task When_session_is_null_Then_should_throw() { IAsyncDocumentSession session = null; return(Assert.ThrowsAsync <ArgumentNullException>(() => session.LoadRevision <RevisionedDocument>("key", 1))); }