public string UpdateFeature(Features feature) { string errorMessage = string.Empty; FeatureManager.FeatureUpdate(feature, out errorMessage); return(errorMessage); }
public void FeatureUpdate_ReturnString(string name, bool expected) { Features feature = new Features(); feature.FeatureName = name; string errorMessage = string.Empty; bool isEmptyString = true; FeatureManager.FeatureUpdate(feature, out errorMessage, true); isEmptyString = string.IsNullOrEmpty(errorMessage); Assert.IsTrue(isEmptyString == expected); }