예제 #1
0
 public void TheNameIs([DefaultValue("NameID")] string type, [DefaultValue("urn:oasis:names:tc:SAML:2.0:nameid-format:persistent")] string format, string name)
 {
     _response.Subject.Name = new SamlName
     {
         Format = NameFormat.Get(format),
         Type   = type.ToEnumValue <SamlNameType>(),
         Value  = name
     };
 }
예제 #2
0
 public void name_format_can_find_itself()
 {
     NameFormat.Get(NameFormat.Persistent.Uri.ToString())
     .ShouldBeTheSameAs(NameFormat.Persistent);
 }