+ Start a Discussion
Linga_RaminLinga_Ramin 

How to cover below lines in Test class.It's taking default Org as 'USD' and getting that line covered.Remaining not covering

boolean isMultiCurrencyOrganization = userinfo.isMultiCurrencyOrganization();
      string DefaultCurrency = userinfo.getDefaultCurrency();
          System.debug('DefaultCurrency:'+DefaultCurrency);
       if(DefaultCurrency == 'USD')userCurrencySign = '$';
        else if(DefaultCurrency == 'EUR')userCurrencySign = '€';
      else if(DefaultCurrency == 'INR')userCurrencySign = 'INR';
         else if(DefaultCurrency == 'CAD')userCurrencySign = '$';
       map<Id,string> mapcurrency = new map<Id,string>();
      if(isMultiCurrencyOrganization){
     System.debug('isMultiCurrencyOrganization'+isMultiCurrencyOrganization);
                                                                   CurrencyConversion.Initialization();
                                                               }