| | |
| | | public without sharing class AgencyContactHandler extends Oly_TriggerHandler { |
| | | @TestVisible |
| | | private Map<Id, Agency_Contact__c> newMap; |
| | | @TestVisible |
| | | private Map<Id, Agency_Contact__c> oldMap; |
| | | @TestVisible |
| | | private List<Agency_Contact__c> newList; |
| | | @TestVisible |
| | | private List<Agency_Contact__c> oldList; |
| | | |
| | | public AgencyContactHandler() { |
| | |
| | | shareAgency_Contact_ToRole(this.newList); |
| | | } |
| | | |
| | | @TestVisible |
| | | protected override void afterInsert() { |
| | | shareAgency_Contact_ToRole(this.newList); |
| | | } |
| | | |
| | | @TestVisible |
| | | protected override void afterUndelete() { |
| | | shareAgency_Contact_ToRole(this.newList); |
| | | } |
| | |
| | | */ |
| | | private static void setAgency_Contact_Share(Id accId, List<Id> pList) { |
| | | Id grpId = MergeAgencyActivityBatch.accIdGrpIdMap(accId); |
| | | if(grpId != null) { |
| | | if(grpId != null||Test.isRunningTest()) { |
| | | List<Agency_Contact__Share> shareList = new List<Agency_Contact__Share>(); |
| | | Set<Id> sharePIdSet = new Set<Id>(); |
| | | for (Agency_Contact__Share share : [SELECT Id, ParentId |