| | |
| | | System.debug('re: ' + recordTypeId); |
| | | // agencyOpportunity = [select Id from Agency_Opportunity__c where Name = '引合2']; |
| | | Test.startTest(); |
| | | ControllerResponse res = NewAgencyOpportunityController.Init(agencyOpportunity.Id, recordTypeId); |
| | | ControllerResponse res = NewAgencyOpportunityController.Init(agencyOpportunity.Id, '', recordTypeId); |
| | | System.debug('res----'+res); |
| | | Map<string,object> data = new Map<string,object>(); |
| | | data = (Map<string,object>)res.Data; |
| | | NewAgencyOpportunityController.Save(data, agencyOpportunity.Id+'', recordTypeId); |
| | | NewAgencyOpportunityController.getAWSDataIds(aHosLink.Id); |
| | | NewAgencyOpportunityController.Save(data, agencyOpportunity.Id + '', recordTypeId); |
| | | NewAgencyOpportunityController.getAWSDataIds(aHosLink.Id, ''); |
| | | List<String> acList = new List<String>(); |
| | | acList.add('960382060990562305'); |
| | | NewAgencyOpportunityController.searchAgencyContacts(JSON.serialize(acList), ''); |
| | | NewAgencyOpportunityController.searchAgencyContacts(JSON.serialize(acList), '', ''); |
| | | Test.stopTest(); |
| | | } |
| | | |
| | |
| | | String recordTypeId = Schema.SObjectType.Agency_Opportunity__c.getRecordTypeInfosByDeveloperName().get('Opportunity').getRecordTypeId(); |
| | | System.debug('re: ' + recordTypeId); |
| | | Test.startTest(); |
| | | ControllerResponse res = NewAgencyOpportunityController.Init('', recordTypeId); |
| | | ControllerResponse res = NewAgencyOpportunityController.Init('', '', recordTypeId); |
| | | System.debug('res----'+res); |
| | | Map<string,object> data = new Map<string,object>(); |
| | | data = (Map<string,object>)res.Data; |