public void SetUp() {
     MetaDescriptionFactory factory;
     Tower tower = new Tower();
     factory = new MetaDescriptionFactory(typeof(Unicorn), tower.metamodel);
     subject = factory.CreateInstance();
     factory.InitializeInstance();
 }
 public void RegisterType(Type type)
 {
     if (!classes.ContainsKey(type))
     {
         MetaDescriptionFactory factory  = new MetaDescriptionFactory(type, this);
         MetaDescription        instance = factory.CreateInstance();
         if (instance != null)
         {
             classes.Add(type, instance);
             factory.InitializeInstance();
             this.Add(instance);
         }
     }
 }