示例#1
0
        public void GetSingleGraphAsync()
        {
            var data = new TestData {
                Id = 2, Value = "This is collection 2 data"
            };

            _orchestrate.CreateCollection("GraphTestCollection2", "2", data);
            _orchestrate.PutGraph(CollectionName, "1", "toplevelgraph", "GraphTestCollection2", "2");
            var kinds = new[] { "toplevelgraph" };

            var result = _orchestrate.GetGraphAsync(CollectionName, "1", kinds).Result;

            Assert.IsTrue(result.Count == 1);
        }