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