Exemplo n.º 1
0
 private bool removeTestPartyCustomAttributeValue(Dlm.Entities.Party.PartyCustomAttributeValue partyCustomAttrVal)
 {
     Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager();
     return pm.RemovePartyCustomAttriuteValue(partyCustomAttrVal);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 private void deleteTestParty(List<Dlm.Entities.Party.Party> parties)
 {
     Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager();
     pm.Delete(parties);
 }
Exemplo n.º 4
0
 private bool removePartyRelationship(Dlm.Entities.Party.PartyRelationship partyRelationship)
 {
     Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager();
     return pm.RemovePartyRelationship(partyRelationship);
 }
Exemplo n.º 5
0
 private void deleteTestParty(Dlm.Entities.Party.Party party)
 {
     Dlm.Services.Party.PartyManager pm = new Dlm.Services.Party.PartyManager();
     pm.Delete(party);
 }
Exemplo n.º 6
0
 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");
 }
Exemplo n.º 7
0
 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);
 }
Exemplo n.º 8
0
 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");
 }
Exemplo n.º 9
0
        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;
        }