BExIS.Web.Shell.Controllers.TestController.addTestPartyCustomAttributeValue C# (CSharp) Method

addTestPartyCustomAttributeValue() private method

private addTestPartyCustomAttributeValue ( Dlm party, Dlm partyCustomAttr ) : Dlm.Entities.Party.PartyCustomAttributeValue
party Dlm
partyCustomAttr Dlm
return Dlm.Entities.Party.PartyCustomAttributeValue
        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");
        }