public void Saml2RequestBase_ToXNodes_IssueInstant() { var r = new ConcreteSaml2Request(); r.ToXElement().Attribute("IssueInstant").Should().NotBeNull() .And.Subject.Value.Should().Be(r.IssueInstant); }
public void Saml2RequestBase_ToXNodes_Version() { var r = new ConcreteSaml2Request(); r.ToXElement().Attribute("Version").Should().NotBeNull() .And.Subject.Value.Should().Be(r.Version); }
public void Saml2RequestBase_ToXNodes_Issuer() { var uri = "http://sp.example.com/"; var r = new ConcreteSaml2Request() { Issuer = new EntityId(uri) }; r.ToXElement().Element(Saml2Namespaces.Saml2 + "Issuer").Value.Should().Be(uri); }
public void Saml2RequestBase_ToXNodes_Extensions() { var content = XElement.Parse("<additional />"); var r = new ConcreteSaml2Request() { ExtensionsContent = new[] { content } }; r.ToXElement().Element(Saml2Namespaces.Saml2P + "Extensions").FirstNode.Should().Be(content); }
public void Saml2RequestBase_ToXNodes_Destination() { var uri = "http://idp.example.com/"; var r = new ConcreteSaml2Request() { DestinationUrl = new Uri(uri) }; r.ToXElement().Attribute("Destination").Should().NotBeNull() .And.Subject.Value.Should().Be(uri); }
public void Saml2RequestBase_ToXNodes_Saml2NamespacePrefix() { var r = new ConcreteSaml2Request(); r.ToXElement().GetPrefixOfNamespace(Saml2Namespaces.Saml2Name).Should().Be("saml2"); }
public void Saml2RequestBase_ToXNodes_Issuer() { var uri = "http://sp.example.com/"; var r = new ConcreteSaml2Request() { Issuer = new EntityId(uri) }; r.ToXElement().Element(Saml2Namespaces.Saml2+ "Issuer").Value.Should().Be(uri); }