Tests.Raven.Client.ContextualListeners.ContextualDocumentConversionListenerTests.Should_use_context_async C# (CSharp) Method

Should_use_context_async() private method

private Should_use_context_async ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task Should_use_context_async()
        {
            using (var context = new ConversionContext())
            {
                using (var session = DocumentStore.OpenAsyncSession())
                {
                    var doc = new Doc {Id = "Doc"};
                    await session.StoreAsync(doc);
                    await session.SaveChangesAsync();
                    Assert.True(context.EntityToDocumentCalled);
                }
            }

            using (var context = new ConversionContext())
            {
                using (var session = DocumentStore.OpenAsyncSession())
                {
                    await session.LoadAsync<Doc>("Doc");
                    Assert.True(context.DocumentToEntityCalled);
                }
            }
        }