Example #1
0
        public new StorageSystemOptions GetOptions()
        {
            var option = new StorageSystemOptions();

            CopyToOptions(option);
            return(option);
        }
Example #2
0
 public StorageSystem (string id, string parentId, StorageSystemOptions options)
     : base (id, parentId, options)
 {
     StorageTotal = options.StorageTotal;
     StorageUsed = options.StorageUsed;
     StorageFree = options.StorageFree;
     StorageMaxPartition = options.StorageMaxPartition;
     StorageMedium = options.StorageMedium;
 }
Example #3
0
 public StorageSystem(string id, string parentId, StorageSystemOptions options)
     : base(id, parentId, options)
 {
     StorageTotal        = options.StorageTotal;
     StorageUsed         = options.StorageUsed;
     StorageFree         = options.StorageFree;
     StorageMaxPartition = options.StorageMaxPartition;
     StorageMedium       = options.StorageMedium;
 }
Example #4
0
        protected void CopyToOptions (StorageSystemOptions options)
        {
            base.CopyToOptions (options);

            options.StorageTotal = StorageTotal;
            options.StorageUsed = StorageUsed;
            options.StorageFree = StorageFree;
            options.StorageMaxPartition = StorageMaxPartition;
            options.StorageMedium = StorageMedium;
        }
Example #5
0
        protected void CopyToOptions(StorageSystemOptions options)
        {
            base.CopyToOptions(options);

            options.StorageTotal        = StorageTotal;
            options.StorageUsed         = StorageUsed;
            options.StorageFree         = StorageFree;
            options.StorageMaxPartition = StorageMaxPartition;
            options.StorageMedium       = StorageMedium;
        }
Example #6
0
 static void AssertStorageSystem (StorageSystem storageSystem, StorageSystemOptions options)
 {
     AssertContainer (storageSystem, options);
     Assert.AreEqual (storageSystem.StorageUsed, options.StorageUsed);
     Assert.AreEqual (storageSystem.StorageTotal, options.StorageTotal);
     Assert.AreEqual (storageSystem.StorageFree, options.StorageFree);
     Assert.AreEqual (storageSystem.StorageMedium, options.StorageMedium);
     Assert.AreEqual (storageSystem.StorageMaxPartition, options.StorageMaxPartition);
 }
Example #7
0
 static void SetStorageSystemOptions (StorageSystemOptions options)
 {
     SetStorageVolumeOptions (options);
     options.StorageMaxPartition = 53;
 }
Example #8
0
 public void StorageSystemInstantiation ()
 {
     var options = new StorageSystemOptions ();
     SetStorageSystemOptions (options);
     var storage_system = new StorageSystem ("-1", "-1", options);
     AssertStorageSystem (storage_system, options);
     AssertStorageSystem (storage_system, storage_system.GetOptions ());
 }
Example #9
0
 public new StorageSystemOptions GetOptions ()
 {
     var option = new StorageSystemOptions ();
     CopyToOptions (option);
     return option;
 }