public int UpdateSelectedParameter(string pName, object pNewValue)
        {
            if (pNewValue == null)
            {
                return(_dataParamManager.UpdateSelectedParameter(pName));
            }
            if (pNewValue is int)
            {
                return(_dataParamManager.UpdateSelectedParameter(pName, (int)pNewValue));
            }
            if (pNewValue is bool)
            {
                return(_dataParamManager.UpdateSelectedParameter(pName, (bool)pNewValue));
            }

            return(_dataParamManager.UpdateSelectedParameter(pName, pNewValue.ToString()));
        }
        public void TestUpdateCountry()
        {
            ApplicationSettings dataParam = ApplicationSettings.GetInstance("");

            _generalSettingsManager.UpdateSelectedParameter(OGeneralSettings.COUNTRY, "FRANCE");
            Assert.AreEqual("FRANCE", dataParam.Country);

            _generalSettingsManager.FillGeneralSettings();
            Assert.AreEqual("FRANCE", dataParam.Country);

            _generalSettingsManager.UpdateSelectedParameter(OGeneralSettings.COUNTRY, "AGHANISTAN");
            Assert.AreEqual("AGHANISTAN", dataParam.Country);

            _generalSettingsManager.FillGeneralSettings();
            Assert.AreEqual("AGHANISTAN", dataParam.Country);
        }