You need to sign in to do that
Don't have an account?
Krishna Sahu 1
Need help to write test class on that
public inherited sharing class ProcedureCode
{
@AuraEnabled
public String procedureCodeId;
@AuraEnabled
public String procedureMasterCode;
@AuraEnabled
public String cptCode;
@AuraEnabled
public String description;
@AuraEnabled
public Decimal units;
public ProcedureCode(String procedureCodeId, String procedureMasterCode, String cptCode, String description, Decimal units)
{
this.procedureCodeId = this.procedureCodeId;
this.procedureMasterCode = procedureMasterCode;
this.cptCode = cptCode;
this.description = description;
this.units = units;
}
}
{
@AuraEnabled
public String procedureCodeId;
@AuraEnabled
public String procedureMasterCode;
@AuraEnabled
public String cptCode;
@AuraEnabled
public String description;
@AuraEnabled
public Decimal units;
public ProcedureCode(String procedureCodeId, String procedureMasterCode, String cptCode, String description, Decimal units)
{
this.procedureCodeId = this.procedureCodeId;
this.procedureMasterCode = procedureMasterCode;
this.cptCode = cptCode;
this.description = description;
this.units = units;
}
}
Try Below Test Class Coverage 100% Please Mark It As Best Asnwer If It Helps
Thank You!
All Answers
The below articles give an idea of how to get started with test classes. You will need to customize based on your requirement
https://salesforce.stackexchange.com/questions/244794/how-do-i-increase-my-code-coverage-or-why-cant-i-cover-these-lines
https://salesforce.stackexchange.com/questions/244788/how-do-i-write-an-apex-unit-test
Thanks
Try Below Test Class Coverage 100% Please Mark It As Best Asnwer If It Helps
Thank You!
Thank you so much