public void Should_Be_Able_To_Create_Vertex_With_Multicardinality_Property() { var g = DseGraph.Traversal(Session); g.AddV("multi_v") .Property("multi_prop", "Hold") .Property("multi_prop", "the") .Property("multi_prop", "door") .Next(); StatementClassicIntegrationTest.VerifyMultiCardinalityProperty(Session, g, new [] { "Hold", "the", "door" }); g.V().HasLabel("multi_v").Drop().Next(); }
public void Should_Be_Able_To_Create_Vertex_With_Multicardinality_Property() { var g = DseGraph.Traversal(Session); var direwolves = new[] { "Ghost", "Nymeria", "Shaggydog", "Grey Wind", "Lady" }; var addVertext = g.AddV("multi_v"); foreach (var t in direwolves) { addVertext = addVertext.Property("multi_prop", t); } var stmt = DseGraph.StatementFromTraversal(addVertext); Session.ExecuteGraph(stmt); StatementClassicIntegrationTest.VerifyMultiCardinalityProperty(Session, g, direwolves); g.V().HasLabel("multi_v").Drop().Next(); }