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

GetCustomPropertyValueThrowsExceptionIfMultiplePropertiesFound() private method

        public void GetCustomPropertyValueThrowsExceptionIfMultiplePropertiesFound()
        {
            const string propertyName = "SomeProp";
            claimsIdentity.AddClaim(new Claim(ClaimTypePrefix.CustomProperty + propertyName, "Foo"));
            claimsIdentity.AddClaim(new Claim(ClaimTypePrefix.CustomProperty + propertyName, "Bar"));

            sut.GetCustomPropertyValue(propertyName);
        }