Example #1
0
        public void Test_ProjectImmutableSiteModelTest()
        {
            var sourceSiteModel = new SiteModel(Guid.NewGuid(), StorageMutability.Immutable, false);
            var result          = sourceSiteModel.SaveToPersistentStoreForTAGFileIngest(sourceSiteModel.PrimaryStorageProxy);

            Assert.True(result, "unable to save SiteModel to Persistent store");

            var targetSiteModel = new SiteModel(sourceSiteModel.ID, StorageMutability.Immutable, false);
            var fileStatus      = targetSiteModel.LoadFromPersistentStore();

            Assert.True(FileSystemErrorStatus.OK == fileStatus, "unable to load SiteModel from Persistent store");
        }