Authentication.Claims.Tests.AuthenticatedUserContextTests.GetCustomPropertyValue C# (CSharp) Method

GetCustomPropertyValue() private method

private GetCustomPropertyValue ( ) : void
return void
        public void GetCustomPropertyValue()
        {
            const string propertyName = "SomeProp";
            const string expectedValue = "Foo";
            claimsIdentity.AddClaim(new Claim(ClaimTypePrefix.CustomProperty + propertyName, expectedValue));
            claimsIdentity.AddClaim(new Claim(ClaimTypePrefix.CustomProperty + "OtherProperty", "Bar"));

            string value = sut.GetCustomPropertyValue(propertyName);

            Assert.AreEqual(expectedValue, value);
        }