public static void GetAndConnectGraphClient(out IGraphClient graphClient, out IDriver driver, out IAsyncSession session, out IAsyncTransaction transaction) { GetDriverAndSession(out driver, out session, out transaction); var client = new BoltGraphClient(driver); client.ConnectAsync().Wait(); driver.ClearReceivedCalls(); session.ClearReceivedCalls(); graphClient = client; }