public void EntGraph_BuildEntityTypePath_All() { var entGraph = new EntityGraph(typeof(Order), new List <Order>()); string[] paths = entGraph.Select(g => g.EntityTypePath).ToArray(); Assert.AreEqual(3, paths.Length); Assert.AreEqual("", paths[0]); Assert.AreEqual("OrderItem-OrderItems", paths[1]); Assert.AreEqual("OrderItem-OrderItems-Receipt-ItemReceipt", paths[2]); }
public void EntGraph_BuildEntityTypePath_All() { var entGraph = new EntityGraph(typeof(Order), new List<Order>()); string[] paths = entGraph.Select(g => g.EntityTypePath).ToArray(); Assert.AreEqual(3, paths.Length); Assert.AreEqual("", paths[0]); Assert.AreEqual("OrderItem-OrderItems", paths[1]); Assert.AreEqual("OrderItem-OrderItems-Receipt-ItemReceipt", paths[2]); }