listofvalues, Map mapofCoustomobject ){for (Trigger_Basic_Assignments_ct :listofValues)if(mapofCoustomobject =- null || t.Field_A_c != mapofCoustomobject.get(t.Id). Field_A_C || t.Field_8_c !=...


Salesforce Assignment:<br>You are working in company as a junior developer and the manger assign you a task to create the<br>test class of trigger code of the following code will cover all the use case like insert, update, delete.<br>The code is as follows:<br>public class TriggerBasicAssignmentTriggerHelper (<br>// This method is used to update the vlaue of field C<br>public static void getfiledvalue(List<Trigger_Basic_Assignments_c> listofvalues, Map<Id, Trigger_Basic_Assignments_c> mapofCoustomobject ){<br>for (Trigger_Basic_Assignments_ct :listofValues)<br>if(mapofCoustomobject =- null || t.Field_A_c != mapofCoustomobject.get(t.Id). Field_A_C || t.Field_8_c != mapofCoustomobject.get(t.I<br>if(t.Operator_ '+')<br>t.Field C_c = t.Field_A_c + t.Field_B_c;<br>else if(t.Operator_ *)<br>t.Field C_c = t.Field A_* t.Field 8_c;<br>else if(t.Operator_c == /' &8 t.Field B_c != 0)<br>t.Field C_c = t.Field A_c / t.Field B_c;<br>else<br>t.Field C_c = t.Field A_c - t.Field B_c;<br>I need the test class only.<br>

Extracted text: Salesforce Assignment: You are working in company as a junior developer and the manger assign you a task to create the test class of trigger code of the following code will cover all the use case like insert, update, delete. The code is as follows: public class TriggerBasicAssignmentTriggerHelper ( // This method is used to update the vlaue of field C public static void getfiledvalue(List listofvalues, Map mapofCoustomobject ){ for (Trigger_Basic_Assignments_ct :listofValues) if(mapofCoustomobject =- null || t.Field_A_c != mapofCoustomobject.get(t.Id). Field_A_C || t.Field_8_c != mapofCoustomobject.get(t.I if(t.Operator_ '+') t.Field C_c = t.Field_A_c + t.Field_B_c; else if(t.Operator_ *) t.Field C_c = t.Field A_* t.Field 8_c; else if(t.Operator_c == /' &8 t.Field B_c != 0) t.Field C_c = t.Field A_c / t.Field B_c; else t.Field C_c = t.Field A_c - t.Field B_c; I need the test class only.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here