Beispiel #1
0
        public async Task SetIsConnected()
        {
            var driverMock = DriverTestHelper.MockDriverWithConnectionSet();

            var bgc = new BoltGraphClient(driverMock.Object);
            await bgc.ConnectAsync();

            bgc.IsConnected.Should().BeTrue();
        }
Beispiel #2
0
        public async Task SetsTheVersionOfTheServer()
        {
            var driverMock = DriverTestHelper.MockDriverWithConnectionSet();

            var bgc = new BoltGraphClient(driverMock.Object);
            await bgc.ConnectAsync();

            bgc.ServerVersion.Should().Be(new Version(3, 2, 3));
        }