示例#1
0
        public void Saml2RequestBase_ToXNodes_Version()
        {
            var r = new ConcreteSaml2Request();

            r.ToXElement().Attribute("Version").Should().NotBeNull()
            .And.Subject.Value.Should().Be(r.Version);
        }
示例#2
0
        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_Id()
        {
            var r = new ConcreteSaml2Request();

            r.ToXElement().Attribute("ID").Should().NotBeNull()
                .And.Subject.Value.Should().Be(r.Id);
        }
        public void Saml2RequestBase_ToXNodes_Destination()
        {
            var uri = "http://idp.example.com/";
            var r = new ConcreteSaml2Request() { DestinationUri = new Uri(uri) };

            r.ToXElement().Attribute("Destination").Should().NotBeNull()
                .And.Subject.Value.Should().Be(uri);
        }
示例#5
0
        public void Saml2RequestBase_ToXNodes_Issuer()
        {
            var uri = "http://sp.example.com/";
            var r   = new ConcreteSaml2Request()
            {
                Issuer = uri
            };

            r.ToXElement().Element(Saml2Namespaces.Saml2 + "Issuer").Value.Should().Be(uri);
        }
示例#6
0
        public void Saml2RequestBase_ToXNodes_Destination()
        {
            var uri = "http://idp.example.com/";
            var r   = new ConcreteSaml2Request()
            {
                DestinationUri = new Uri(uri)
            };

            r.ToXElement().Attribute("Destination").Should().NotBeNull()
            .And.Subject.Value.Should().Be(uri);
        }
示例#7
0
        public void Saml2RequestBase_ToXNodes_Saml2NamespacePrefix()
        {
            var r = new ConcreteSaml2Request();

            r.ToXElement().GetPrefixOfNamespace(Saml2Namespaces.Saml2Name).Should().Be("saml2");
        }
 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 = uri };

            r.ToXElement().Element(Saml2Namespaces.Saml2+ "Issuer").Value.Should().Be(uri);
        }