Exemplo n.º 1
0
        public void InitializeThenGetClientReturnsClient()
        {
            var graphStore = new GraphStore("http://localhost:7474/");

            graphStore.Initialize();
            var client = graphStore.GetClient();

            Assert.That(client, Is.InstanceOf <NeoClient>());
        }
Exemplo n.º 2
0
        public void CallingGetClientBeforeInitializeThrowsInvalidOperationException()
        {
            var graphStore = new GraphStore("http://localhost:7474/");

            Assert.Throws <InvalidOperationException>(() => graphStore.GetClient());
        }