예제 #1
0
 public void setAssociationsTest()
 {
     //Does't work right now:
     //Invalid parameter: associations.
     Get2ObjectIDs();
     API parent = _api;
     data target = new data(parent);
     List<DataAssociation> assocs = new List<DataAssociation>
                                        {
                                            new DataAssociation
                                                {
                                                    assoc_time = DateTime.Now,
                                                    data = Constants.TestAssociationData1,
                                                    id1 = _id1,
                                                    id2 = _id2,
                                                    name = Constants.TestAssociationDefName
                                                },
                                            new DataAssociation
                                                {
                                                    assoc_time = DateTime.Now,
                                                    data = Constants.TestAssociationData2,
                                                    id1 = _id1,
                                                    id2 = _id2,
                                                    name = Constants.TestAssociationDefName
                                                }
                                        };
     string name = Constants.TestAssociationName;
     target.setAssociations(assocs, name);
 }