private bool removeTestPartyCustomAttributeValue(Dlm.Entities.Party.PartyCustomAttributeValue partyCustomAttrVal) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); return pm.RemovePartyCustomAttriuteValue(partyCustomAttrVal); }
private void updateTestParty(long id) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); var party = pm.Repo.Get(id); party.Description = "updated.."; pm.Update(party); }
private void deleteTestParty(List<Dlm.Entities.Party.Party> parties) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); pm.Delete(parties); }
private bool removePartyRelationship(Dlm.Entities.Party.PartyRelationship partyRelationship) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); return pm.RemovePartyRelationship(partyRelationship); }
private void deleteTestParty(Dlm.Entities.Party.Party party) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); pm.Delete(party); }
private Dlm.Entities.Party.PartyStatus addTestPartyStatus(Dlm.Entities.Party.Party party) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); Dlm.Services.Party.PartyTypeManager ptm = new Dlm.Services.Party.PartyTypeManager(); var partyType = ptm.Create("partyTypeTest2", "just for test2", null); var st = ptm.AddStatusType(partyType, "second try", "this is for test data", 0); return pm.AddPartyStatus(party, st, "test"); }
private Dlm.Entities.Party.PartyRelationship addTestPartyRelationship(Dlm.Entities.Party.Party firstParty, Dlm.Entities.Party.Party secondParty, PartyRelationshipType prt) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); return pm.AddPartyRelationship(firstParty, secondParty, prt, "test Rel", "test relationship", DateTime.Now); }
private Dlm.Entities.Party.PartyCustomAttributeValue addTestPartyCustomAttributeValue(Dlm.Entities.Party.Party party, Dlm.Entities.Party.PartyCustomAttribute partyCustomAttr) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); pm.AddPartyCustomAttriuteValue(party, partyCustomAttr, "TestName"); Dictionary<PartyCustomAttribute, string> customAtts = new Dictionary<PartyCustomAttribute, string>(); customAtts.Add(partyCustomAttr, "Dic"); customAtts.Add(addTestPartyCustomAttribute(party.PartyType), "dic2"); customAtts.Add(addTestPartyCustomAttribute(party.PartyType), "dic3"); pm.AddPartyCustomAttriuteValue(party, customAtts); return pm.AddPartyCustomAttriuteValue(party, partyCustomAttr, "TestName updated"); }
private Dlm.Entities.Party.Party addTestParty(PartyType partyType, PartyStatusType st) { Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager(); var party = pm.Create(partyType, "partyTest", "", "party created for test", null, null, st); return party; }