RWS/ISHRemote

Get-IshTypeFieldDefinition shows superfluous values on MM property which only show IsMandatory and IsMultiValue

Closed this issue · 0 comments

Adapt
public string MM { get { StringBuilder mm = new StringBuilder(); mm.Append(IsMandatory ? 'M' : '-'); mm.Append(IsMultiValue ? 'n' : '1'); mm.Append(AllowOnUpdate ? 'U' : '-'); mm.Append(AllowOnSearch ? 'S' : '-'); return mm.ToString(); } }
to
public string MM { get { StringBuilder mm = new StringBuilder(); mm.Append(IsMandatory ? 'M' : '-'); mm.Append(IsMultiValue ? 'n' : '1'); return mm.ToString(); } }

Add check in Pester for the Get-IshTypeFieldDefinition that MM length is 2