Пример #1
0
            public void ShouldEnqueueInitAndSync()
            {
                var mockConn = new Mock <IConnection>();

                mockConn.Setup(x => x.Server).Returns(new ServerInfo(new Uri("http://neo4j.com")));
                BoltV1.Login(mockConn.Object, "user-zhen", AuthTokens.None);

                mockConn.Verify(x => x.Enqueue(It.IsAny <InitMessage>(), It.IsAny <ServerVersionCollector>(), null), Times.Once);
                mockConn.Verify(x => x.Sync());
            }