Exemple #1
0
            public void ResultBuilderShouldObtainServerInfoFromConnection()
            {
                var mockConn  = new Mock <IConnection>();
                var statement = new Statement("lalala");

                BoltV3.RunInExplicitTransaction(mockConn.Object, statement);
                mockConn.Verify(x => x.Server, Times.Once);
            }
Exemple #2
0
            public void ShouldRunPullAllSync()
            {
                var mockConn  = new Mock <IConnection>();
                var statement = new Statement("lalala");

                BoltV3.RunInExplicitTransaction(mockConn.Object, statement);

                mockConn.Verify(x => x.Enqueue(It.IsAny <RunWithMetadataMessage>(), It.IsAny <ResultBuilder>(), PullAll), Times.Once);
                mockConn.Verify(x => x.Send(), Times.Once);
            }