Exemplo n.º 1
0
 public void defineAssociationTest()
 {
     DropAssociations();
     createObjectTypeTest();
     API parent = _api;
     data target = new data(parent);
     string name = Constants.TestAssociationDefName;
     int assoc_type = 2;
     assoc_object_type assoc_info1 = new assoc_object_type
                                         {
                                             alias = Constants.TestAssociationDefAlias1,
                                             object_type = Constants.TestType
                                         };
     assoc_object_type assoc_info2 = new assoc_object_type
                                         {
                                             alias = Constants.TestAssociationDefAlias2,
                                             object_type = Constants.TestType
                                         };
     bool? inverse = null;
     target.defineAssociation(name, assoc_type, assoc_info1, assoc_info2, inverse);
 }