Transcribed Image Text: Salesforce Assignment: You are working in company as a junior developer and the manger assign you a task to create the test
Transcribed Image 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 TriggerBasicAssignmentTriggerer (
// This method is used to update the vlaue of field C
public static void getfiledvalue(List
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.

How it Works

1
It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.


2
Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.


3
After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.


4
Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!