Example #1
0
 private string CreateInvalidRestrictionLevelErrorMessage(SponsorshipRestrictionLevel restrictionLevel)
 {
     return($"RestrictionLevel: {restrictionLevel} is invalid. Allowed values: {String.Join(",", Enum.GetNames(typeof(SponsorshipRestrictionLevel)))}");
 }
Example #2
0
 private bool ContainValidRestrictionLevel(SponsorshipRestrictionLevel restrictionLevel)
 {
     return(Enum.IsDefined(typeof(SponsorshipRestrictionLevel), restrictionLevel));
 }