示例#1
0
 public string GetEstablishmentsPluralName(GT groupType, eTextCase textCase = eTextCase.TitleCase)
 {
     if (groupType.OneOfThese(GT.ChildrensCentresCollaboration, GT.ChildrensCentresGroup))
     {
         return("children's centres".ToTextCase(textCase));
     }
     else if (groupType.OneOfThese(GT.Federation, GT.Trust))
     {
         return("schools".ToTextCase(textCase));
     }
     else if (groupType.OneOfThese(GT.MultiacademyTrust, GT.SingleacademyTrust, GT.SchoolSponsor))
     {
         return("academies".ToTextCase(textCase));
     }
     else
     {
         throw new NotImplementedException($"Group type '{groupType}' is not supported for this operation");
     }
 }