public async Task ShouldThrowExceptionIfNullResult()
            {
                IStatementResultCursor result = null;
                var exception = await Record.ExceptionAsync(() => result.ForEachAsync(r => { }));

                exception.Should().BeOfType <ArgumentNullException>();
            }
        internal async Task <List <Person> > Find()
        {
            IDriver       driver = GraphDatabase.Driver("bolt://127.0.0.1:7687", AuthTokens.None);
            List <Person> nodes  = new List <Person>();

            using (ISession session = driver.Session(AccessMode.Read))
            {
                IStatementResultCursor result = await session.RunAsync("MATCH (n:Person) return n");

                await result.ForEachAsync(r =>
                {
                    nodes.Add(r[r.Keys[0]].Map <Person>());
                });
            }
            return(nodes);
        }