You need to sign in to do that
Don't have an account?
Venu9999
public class MedalliaIntegrationHelper {
public class NPSInviteWrapper {
//Transaction/Order Attributes
public String Invite_Type {set; get;}
public String Invoice_Date {set; get;}
public String Invoice_No {set; get;}
public String Shopping_Amount {set; get;}
public String Branch_Code {set; get;}
public String Tag {set; get;}
public String Customer_Idnt {set; get;}
//Customer Attributes
public String Amber_Idnt {set; get;}
public String Tiername {set; get;}
public String Title {set; get;}
public String First_Name {set; get;}
public String Last_Name {set; get;}
public String Mobilenumber {set; get;}
public String Sms_Market {set; get;}
public String Postbox {set; get;}
public String City {set; get;}
public String Country {set; get;}
public String Email_Address {set; get;}
public String Gender {set; get;}
public String Age_Group {set; get;}
public String Ethnic_Group {set; get;}
public String Birth_Date {set; get;}
public String Tenure {set; get;}
//Location Attributes
public String Brand_Name {set; get;}
public String Branch_Name {set; get;}
public String Mall_Name {set; get;}
public String Store_City {set; get;}
}
}
Need test class for below code ..plz help
public class MedalliaIntegrationHelper {
public class NPSInviteWrapper {
//Transaction/Order Attributes
public String Invite_Type {set; get;}
public String Invoice_Date {set; get;}
public String Invoice_No {set; get;}
public String Shopping_Amount {set; get;}
public String Branch_Code {set; get;}
public String Tag {set; get;}
public String Customer_Idnt {set; get;}
//Customer Attributes
public String Amber_Idnt {set; get;}
public String Tiername {set; get;}
public String Title {set; get;}
public String First_Name {set; get;}
public String Last_Name {set; get;}
public String Mobilenumber {set; get;}
public String Sms_Market {set; get;}
public String Postbox {set; get;}
public String City {set; get;}
public String Country {set; get;}
public String Email_Address {set; get;}
public String Gender {set; get;}
public String Age_Group {set; get;}
public String Ethnic_Group {set; get;}
public String Birth_Date {set; get;}
public String Tenure {set; get;}
//Location Attributes
public String Brand_Name {set; get;}
public String Branch_Name {set; get;}
public String Mall_Name {set; get;}
public String Store_City {set; get;}
}
}
@isTest
public Class MedalliaIntegrationHelperTest{
public static testMethod myTest(){
MedalliaIntegrationHelper.NPSInviteWrapper objClass = new MedalliaIntegrationHelper.NPSInviteWrapper();
objClass.Invite_Type ='Test';
objClass.Invoice_Date ='Test';
same way you have to write all variable as mentioned above.
}
}
Thanks,
Keyur Modi
Please check this two if condition is getting covered as per condition or not ,
if(NumberOfCards!=NULL){
if(NumberOfCards>0 && NumberOfCards<10000) {
Keep debug in this two line and ceck , for other lines like
} else if(NumberOfCards>=10000){
resultMessage = 'Please generate a maximum of 9999 card numbers at a time.';
ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, resultMessage));
} else if (NumberOfCards<=0){
you have to created different records which will cover this criteria , you can create new method for diff records.
Thanks,
Keyur Modi