Beispiel #1
0
        public void AttributesAndOrderCorrectlyApplied()
        {
            var props = typeof(MessageClaim).GetProperties();

            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "Issuer"), 0));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "OriginalIssuer"), 1));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "Properties"), 2));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "Type"), 3));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "Value"), 4));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "ValueType"), 5));
        }
Beispiel #2
0
        public void AttributesAndOrderCorrectlyApplied()
        {
            var props = typeof(MessageIdentity).GetProperties();

            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "AuthenticationType"), 0));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "IsAuthenticated"), 1));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "Label"), 2));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "NameClaimType"), 3));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "RoleClaimType"), 4));
            Assert.True(AttributeHelper.AttributeCorrect(props.Single(x => x.Name == "Claims"), 5));
        }