public void When_save_non_revisioned_document_and_load_revision_Then_should_get_null()
        {
            using (var session = _documentStore.OpenSession())
            {
                var doc = new NonRevisionedDocument {
                    Id = "key", Data = "Alpha"
                };
                session.Store(doc);
                session.SaveChanges();
            }


            using (var session = _documentStore.OpenSession())
            {
                var doc = session.LoadRevision <NonRevisionedDocument>("key", 1);
                Assert.Null(doc);
            }
        }
        public async Task When_save_non_revisioned_document_and_load_revision_Then_should_get_null()
        {
            using (var session = _documentStore.OpenAsyncSession())
            {
                var doc = new NonRevisionedDocument {
                    Id = "key", Data = "Alpha"
                };
                await session.StoreAsync(doc);

                await session.SaveChangesAsync();
            }


            using (var session = _documentStore.OpenAsyncSession())
            {
                var doc = await session.LoadRevision <NonRevisionedDocument>("key", 1);

                Assert.Null(doc);
            }
        }
		public void When_save_non_revisioned_document_and_load_revision_Then_should_get_null()
		{
			using (var session = _documentStore.OpenSession())
			{
				var doc = new NonRevisionedDocument { Id = "key", Data = "Alpha" };
				session.Store(doc);
				session.SaveChanges();
			}


			using (var session = _documentStore.OpenSession())
			{
				var doc = session.LoadRevision<NonRevisionedDocument>("key", 1);
				Assert.Null(doc);
			}
		}
        public async Task When_save_non_revisioned_document_and_load_revision_Then_should_get_null()
        {
            using (var session = _documentStore.OpenAsyncSession())
            {
                var doc = new NonRevisionedDocument { Id = "key", Data = "Alpha" };
                await session.StoreAsync(doc);
                await session.SaveChangesAsync();
            }


            using (var session = _documentStore.OpenAsyncSession())
            {
                var doc = await session.LoadRevision<NonRevisionedDocument>("key", 1);
                Assert.Null(doc);
            }
        }