Trying to call a Class method from a test class:
Class UtilHelper
global class FeeWrapper {
global List<Project__c> transToUpdate;
}
public static FeeWrapper PassingRentFee(Fee_Calculation__c Config, Project__c trans, List<Project__c> transToUpdate, Map<String, Fee_Mapping__c> m_Fee)
Test class
Map<String,Fee_Mapping__c > afMap = new Map<String,Fee_Mapping__c >(
[ SELECT Id, Fee_Amount__c , _Fee_Basis__c , WO__c,Group__c,Type__c,Macro_Type__c
FROM Fee_Mapping__c]);
List<Fee_Calculation__c > feeRec = [
SELECT Id, Name
FROM Fee_Calculation__c];
List<Project__c> projectRec = [
SELECT Id, Name
FROM sProject__c];
UtilHelper.PassingRentFee rcp = new UtilHelper.PassingRentFee(feeRec[0],projectRec[0],projectRec,afMap); ***error Invalid type***
Is it the parameter I am passing in or is it my syntax. Or both that is causing the error?