Tp.MashupManager.Mashup.ValidateNameNotEmpty C# (CSharp) Method

ValidateNameNotEmpty() protected method

protected ValidateNameNotEmpty ( PluginProfileErrorCollection errors ) : void
errors PluginProfileErrorCollection
return void
		protected void ValidateNameNotEmpty(PluginProfileErrorCollection errors)
		{
			if (string.IsNullOrWhiteSpace(Name))
				errors.Add(new PluginProfileError
				{
					FieldName = NameField,
					Message = "Mashup name cannot be empty or consist of whitespace characters only"
				});
		}