private bool IsKnowledgeAvailable(ApiHttpClient apiClient) { if (SubType.IsNoE()) { return(false); } _mandator = _mandator ?? new MandatorRequest().LoadResult(apiClient); return(_mandator.Knowledges.Any(x => x.Is(SubType))); }
public override bool IsColumnConfigurationValid(ApiHttpClient apiClient) { if (SubType.IsNoE()) { Program.WriteWarning("No subtype specified for column '" + Header + "'."); return(false); } if (!IsKnowledgeAvailable(apiClient)) { Program.WriteWarning("There is no knowledge '" + SubType + "'."); return(false); } return(true); }