Replace() public method

public Replace ( Specification specification ) : void
specification Specification
return void
Esempio n. 1
0
        public when_replacing_a_specification()
        {
            theHierarchy = HierarchyLoader.ReadHierarchy(TestingContext.SpecFolder).ToHierarchy();

            theOriginal = theHierarchy.Specifications["embeds"];
            theNew = theOriginal.Clone();
            theNew.path = null;
            theNew.id = theOriginal.id; // gets a new id by default
            theTime = DateTime.Now;
            theHierarchy.Replace(theNew, theTime);
        }
Esempio n. 2
0
        public void SetUp()
        {
            theHierarchy = HierarchyLoader.ReadHierarchy(TestingContext.SpecFolder).ToHierarchy();

            theOriginal = theHierarchy.Specifications["embeds"];
            theNew = theOriginal.Clone();
            theNew.path = null;
            theNew.id = theOriginal.id; // gets a new id by default

            theHierarchy.Replace(theNew);
        }