public Dictionary <string, CensusDTO> LoadCsvData(CensusAnalyzer.Country country, string csvFilePath, string dataHeader)
        {
            switch (country)
            {
            case (CensusAnalyzer.Country.INDIA):
                return(new IndianCensusAdapter().LoadCensusData(csvFilePath, dataHeader));

            default:
                throw new CensusAnalyzerException("No such country", CensusAnalyzerException.ExceptionType.NO_SUCH_COUNTRY);
            }
        }
 public Dictionary <string, CensusDTO> GetCensusData(CensusAnalyzer.Country country, string filePath, string headers)
 {
     if (country.Equals(CensusAnalyzer.Country.INDIA))
     {
         return(new IndianCensusAdapter().LoadCensusData(filePath, headers));
     }
     else if (country.Equals(CensusAnalyzer.Country.US))
     {
         return(new USCensusAdapter().LoadUSCensusData(filePath, headers));
     }
     else
     {
         throw new CensusAnalyserException("Incorrect Country", CensusAnalyserException.ExceptionType.INVALID_COUNTRY);
     }
 }