File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
source/main/default/classes Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -41,24 +41,15 @@ global class MockCmdt {
4141 this .records = new Map <String , SObject >{};
4242 }
4343
44- /**
45- * @description Adds multiple records from a map to the mock repository.
46- * @param recordMap Map of record keys to SObject records
47- * @return This repository instance for method chaining
48- */
49- global Repository add (Map <String , SObject > recordMap ) {
50- this .records ?. putAll (recordMap );
51- return this ;
52- }
53-
5444 /**
5545 * @description Adds multiple records from a list to the mock repository.
5646 * @param recordList List of SObject records to add
5747 * @return This repository instance for method chaining
5848 */
5949 global MockCmdt.Repository add (List <SObject > recordList ) {
60- Map <String , SObject > records = Cmdt .mapByKey (recordList );
61- return this .add (records );
50+ Map <String , SObject > recordMap = Cmdt .mapByKey (recordList );
51+ this .records ?. putAll (recordMap );
52+ return this ;
6253 }
6354
6455 /**
You can’t perform that action at this time.
0 commit comments