public override ScottLane.DataTidy.Core.ValidationResult Validate() { ScottLane.DataTidy.Core.ValidationResult result = base.Validate(); result.AddErrorIf(Solution == default(Dynamics365Solution), "Please select a Solution", nameof(Solution)); result.AddErrorIf(NamingConvention == default(NamingConventionType), "Please select a Naming Convention", nameof(NamingConvention)); if (NamingConvention != default(NamingConventionType)) { result.AddErrorIf(NamingConvention == NamingConventionType.Custom && string.IsNullOrEmpty(OutputPath), "Please specify the Output Path", nameof(OutputPath)); result.AddErrorIf(NamingConvention != NamingConventionType.Custom && string.IsNullOrEmpty(OutputDirectory), "Please specify the Output Directory", nameof(OutputDirectory)); } return(result); }