Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/17 11:41:43 (8 years ago)
Author:
gkronber
Message:

#2520

  • renamed StorableClass -> StorableType
  • changed persistence to use GUIDs instead of type names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceOverhaul/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/UseCases.cs

    r13386 r14711  
    4646namespace HeuristicLab.Persistence.Tests {
    4747
    48   [StorableClass("777E5793-7389-4109-A617-D7D6EB74A2C7")]
     48  [StorableType("777E5793-7389-4109-A617-D7D6EB74A2C7")]
    4949  public class NumberTest {
    5050    [Storable]
     
    9595  }
    9696
    97   [StorableClass("2911C342-74AB-4B47-9840-87F012AEF0C1")]
     97  [StorableType("2911C342-74AB-4B47-9840-87F012AEF0C1")]
    9898  public class NonDefaultConstructorClass {
    9999    [Storable]
     
    104104  }
    105105
    106   [StorableClass("8621F4FA-8711-4DA4-A50B-7D04683440B8")]
     106  [StorableType("8621F4FA-8711-4DA4-A50B-7D04683440B8")]
    107107  public class IntWrapper {
    108108
     
    127127  }
    128128
    129   [StorableClass("0B93C65E-1A4C-45DD-B40D-7614BA2B2ABA")]
     129  [StorableType("0B93C65E-1A4C-45DD-B40D-7614BA2B2ABA")]
    130130  public class PrimitivesTest : NumberTest {
    131131    [Storable]
     
    159159  public enum TestEnum { va1, va2, va3, va8 } ;
    160160
    161   [StorableClass("0DA4A6A5-0280-4F3C-80DA-0AB09461F66C")]
     161  [StorableType("0DA4A6A5-0280-4F3C-80DA-0AB09461F66C")]
    162162  public class RootBase {
    163163    [Storable]
     
    178178  }
    179179
    180   [StorableClass("12CC2626-A1E2-45A5-9761-902333C88CCF")]
     180  [StorableType("12CC2626-A1E2-45A5-9761-902333C88CCF")]
    181181  public class Root : RootBase {
    182182    [Storable]
     
    213213  public enum TrickyEnum { zero = 0, one = 1, two = 2 }
    214214
    215   [StorableClass("04BFD8AF-AB93-457A-B5CD-F2AB2B18874F")]
     215  [StorableType("04BFD8AF-AB93-457A-B5CD-F2AB2B18874F")]
    216216  public class EnumTest {
    217217    [Storable]
     
    223223  }
    224224
    225   [StorableClass("41E5C615-82A6-4844-B6A4-4DB8ED8C03D8")]
     225  [StorableType("41E5C615-82A6-4844-B6A4-4DB8ED8C03D8")]
    226226  public class Custom {
    227227    [Storable]
     
    233233  }
    234234
    235   [StorableClass("3D2455E6-0AD9-4141-B44A-759F71491443")]
     235  [StorableType("3D2455E6-0AD9-4141-B44A-759F71491443")]
    236236  public class Manager {
    237237
     
    246246  }
    247247
    248   [StorableClass("D8D40F6E-91DC-4E20-8154-F95C0AF32CC8")]
     248  [StorableType("D8D40F6E-91DC-4E20-8154-F95C0AF32CC8")]
    249249  public class C {
    250250    [Storable]
     
    486486    }
    487487
    488     [StorableClass("B2C78E8F-32F9-43BE-9DED-219F102125EB")]
     488    [StorableType("B2C78E8F-32F9-43BE-9DED-219F102125EB")]
    489489    public class NestedType {
    490490      [Storable]
     
    758758    }
    759759
    760     [StorableClass("2B2FE809-CDA4-4BCD-BF4C-35F757678AB9")]
     760    [StorableType("2B2FE809-CDA4-4BCD-BF4C-35F757678AB9")]
    761761    class Child {
    762762      [Storable]
     
    764764    }
    765765
    766     [StorableClass("C8F4E805-26DF-4129-910E-F7F51E4DDE41")]
     766    [StorableType("C8F4E805-26DF-4129-910E-F7F51E4DDE41")]
    767767    class Parent {
    768768      [Storable]
     
    770770    }
    771771
    772     [StorableClass("0CF63740-F8C1-46EE-A3A0-7E350A8EBAA1")]
     772    [StorableType("0CF63740-F8C1-46EE-A3A0-7E350A8EBAA1")]
    773773    class GrandParent {
    774774      [Storable]
     
    848848    }
    849849
    850     [StorableClass("F5920537-7F03-41C4-8061-8F8D7CDDB6BE")]
     850    [StorableType("F5920537-7F03-41C4-8061-8F8D7CDDB6BE")]
    851851    private class PersistenceHooks {
    852852      [Storable]
     
    885885    }
    886886
    887     [StorableClass("935C5ECB-ACEF-48EA-93BC-4B4177DFE0A5")]
     887    [StorableType("935C5ECB-ACEF-48EA-93BC-4B4177DFE0A5")]
    888888    private class CustomConstructor {
    889889      public string Value = "none";
     
    909909    }
    910910
    911     [StorableClass("31D7CE01-E390-40CF-B9BF-BD79A8F850DA")]
     911    [StorableType("31D7CE01-E390-40CF-B9BF-BD79A8F850DA")]
    912912    public class ExplodingDefaultConstructor {
    913913      public ExplodingDefaultConstructor() {
     
    961961    }
    962962
    963     [StorableClass("9DEE1F8F-320C-401B-8103-65FBA6BD4F07")]
     963    [StorableType("9DEE1F8F-320C-401B-8103-65FBA6BD4F07")]
    964964    public class HookInheritanceTestBase {
    965965      [Storable]
     
    972972    }
    973973
    974     [StorableClass("97DF2931-2B23-4FAA-8E59-806FA58ADAED")]
     974    [StorableType("97DF2931-2B23-4FAA-8E59-806FA58ADAED")]
    975975    public class HookInheritanceTestDerivedClass : HookInheritanceTestBase {
    976976      [Storable]
     
    994994    }
    995995
    996     [StorableClass(StorableClassType.AllFields, "6207E4E1-4CFC-4890-9741-33B7E1E43F26")]
     996    [StorableType(StorableMemberSelection.AllFields, "6207E4E1-4CFC-4890-9741-33B7E1E43F26")]
    997997    public class AllFieldsStorable {
    998998      public int Value1 = 1;
     
    10151015    [TestCategory("Persistence")]
    10161016    [TestProperty("Time", "short")]
    1017     public void TestStorableClassDiscoveryAllFields() {
     1017    public void TestStorableTypeDiscoveryAllFields() {
    10181018      AllFieldsStorable afs = new AllFieldsStorable(false);
    10191019      XmlGenerator.Serialize(afs, tempFile);
     
    10251025    }
    10261026
    1027     [StorableClass(StorableClassType.AllProperties, "ADDB5A7C-4BA9-4E5F-BFAF-2B48C8646808")]
     1027    [StorableType(StorableMemberSelection.AllProperties, "ADDB5A7C-4BA9-4E5F-BFAF-2B48C8646808")]
    10281028    public class AllPropertiesStorable {
    10291029      public int Value1 = 1;
     
    10461046    [TestCategory("Persistence")]
    10471047    [TestProperty("Time", "short")]
    1048     public void TestStorableClassDiscoveryAllProperties() {
     1048    public void TestStorableTypeDiscoveryAllProperties() {
    10491049      AllPropertiesStorable afs = new AllPropertiesStorable(false);
    10501050      XmlGenerator.Serialize(afs, tempFile);
     
    10571057    }
    10581058
    1059     [StorableClass(StorableClassType.AllFieldsAndAllProperties, "9C6136CB-A9AC-4527-B41A-7A2DB50ACE53")]
     1059    [StorableType(StorableMemberSelection.AllFieldsAndAllProperties, "9C6136CB-A9AC-4527-B41A-7A2DB50ACE53")]
    10601060    public class AllFieldsAndAllPropertiesStorable {
    10611061      public int Value1 = 1;
     
    10781078    [TestCategory("Persistence")]
    10791079    [TestProperty("Time", "short")]
    1080     public void TestStorableClassDiscoveryAllFieldsAndAllProperties() {
     1080    public void TestStorableTypeDiscoveryAllFieldsAndAllProperties() {
    10811081      AllFieldsAndAllPropertiesStorable afs = new AllFieldsAndAllPropertiesStorable(false);
    10821082      XmlGenerator.Serialize(afs, tempFile);
     
    10881088    }
    10891089
    1090     [StorableClass(StorableClassType.MarkedOnly, "75C9F6F0-1B2E-41E7-A327-AF9CF5C87D8D")]
     1090    [StorableType(StorableMemberSelection.MarkedOnly, "75C9F6F0-1B2E-41E7-A327-AF9CF5C87D8D")]
    10911091    public class MarkedOnlyStorable {
    10921092      public int Value1 = 1;
     
    11091109    [TestCategory("Persistence")]
    11101110    [TestProperty("Time", "short")]
    1111     public void TestStorableClassDiscoveryMarkedOnly() {
     1111    public void TestStorableTypeDiscoveryMarkedOnly() {
    11121112      MarkedOnlyStorable afs = new MarkedOnlyStorable(false);
    11131113      XmlGenerator.Serialize(afs, tempFile);
     
    12481248    }
    12491249
    1250     [StorableClass("A603ABE6-86DB-46F7-AF87-C7B40E4FF169")]
     1250    [StorableType("A603ABE6-86DB-46F7-AF87-C7B40E4FF169")]
    12511251    public class ReadOnlyFail {
    12521252      [Storable]
     
    12721272
    12731273
    1274     [StorableClass("7EDE1D86-C8F5-4B51-846F-1634C0FE20BB")]
     1274    [StorableType("7EDE1D86-C8F5-4B51-846F-1634C0FE20BB")]
    12751275    public class WriteOnlyFail {
    12761276      [Storable]
     
    12951295    }
    12961296
    1297     [StorableClass("65B13830-5D60-4C3F-8D9E-5DCDF1E3A977")]
     1297    [StorableType("65B13830-5D60-4C3F-8D9E-5DCDF1E3A977")]
    12981298    public class OneWayTest {
    12991299      public OneWayTest() { this.value = "default"; }
Note: See TracChangeset for help on using the changeset viewer.