Example #1
0
        public override void SetUp()
        {
            base.SetUp();


            manager = new XmlDataManager();
            XmlFile.DirectoryName = XmlDataManagerTest.testDir;


            ClearTestDirectory();

            FileVersion.Clock = new TestClock();

            oids = new SerialOid[SIZE];
            data = new ObjectData[SIZE];

            INakedObjectSpecification type = system.GetSpecification(typeof(object));

            pattern = new ObjectData(type, null, new FileVersion("user", 13));
            for (int i = 0; i < SIZE; i++)
            {
                oids[i] = SerialOid.CreatePersistent(i, typeof(object).FullName);
                data[i] = new ObjectData(type, oids[i], new FileVersion("user", 13));
                manager.InsertObject(data[i]);
            }
        }
        public override void SetUp() {
            base.SetUp();

            FileVersion.Clock = new TestClock();


            XmlFile.DirectoryName = testDir;
            manager = new XmlDataManager();
            ClearTestDirectory();
        }
Example #3
0
        public override void SetUp()
        {
            base.SetUp();

            FileVersion.Clock = new TestClock();


            XmlFile.DirectoryName = testDir;
            manager = new XmlDataManager();
            ClearTestDirectory();
        }
        public override void SetUp() {
            base.SetUp();

          
            manager = new XmlDataManager();
            XmlFile.DirectoryName = XmlDataManagerTest.testDir;


            ClearTestDirectory();

            FileVersion.Clock = new TestClock();

            oids = new SerialOid[SIZE];
            data = new ObjectData[SIZE];

            INakedObjectSpecification type = system.GetSpecification(typeof(object));
            pattern = new ObjectData(type, null, new FileVersion("user", 13));
            for (int i = 0; i < SIZE; i++) {
                oids[i] = SerialOid.CreatePersistent(i, typeof(object).FullName);
                data[i] = new ObjectData(type, oids[i], new FileVersion("user", 13));
                manager.InsertObject(data[i]);
            }
        }