Exemple #1
0
        public void DatabaseObjectsGraph_Memento()
        {
            var memento = _g.CreateMemento();

            DatabaseObject[] st = memento.State;
            Assert.That(st.Count(), Is.EqualTo(5));

            var anotherGraph = new DatabaseObjectsGraph(memento);

            Assert.That(anotherGraph.ObjectsCount, Is.EqualTo(5));
            var anotherSproc = new DatabaseObject(DatabaseObjectType.StoredProcedure, "C1");

            anotherGraph.AddDependency(_T1, anotherSproc);

            var anotherMemento = anotherGraph.CreateMemento();

            int[][] jaggedArray = anotherGraph.Digraph.CreateMemento().State;
        }