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