Exemplo n.º 1
0
        private static SourceTreeHistLeaf CreateTreeHistLeaf(
            SourceTreeHist treeHist,
            SourceTreeLeaf leaf)
        {
            var treeHistLeaf = new SourceTreeHistLeaf()
            {
                TreeHist       = treeHist,
                Leaf           = leaf,
                TreeHistLeafId = Guid.NewGuid(),
            };

            treeHist.TreeHistLeafs.Add(treeHistLeaf);
            leaf.TreeHistLeafs.Add(treeHistLeaf);
            return(treeHistLeaf);
        }
Exemplo n.º 2
0
 private static void AssertTreeHistLeaf(SourceTreeHistLeaf sourceHistLeaf, TargetTreeHistLeaf targetHistLeaf)
 {
     targetHistLeaf.OriginTreeHistLeafId.Should().Be(sourceHistLeaf.TreeHistLeafId);
 }