< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Configuration.IssuedTokenParametersEndpointAddressElement
Assembly: CoreWCF.ConfigurationManager
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.ConfigurationManager/src/CoreWCF/Configuration/IssuedTokenParametersEndpointAddressElement.cs
Line coverage
12%
Covered lines: 2
Uncovered lines: 14
Coverable lines: 16
Total lines: 50
Line coverage: 12.5%
Branch coverage
0%
Covered branches: 0
Total branches: 4
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%11100%
Copy(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.ConfigurationManager/src/CoreWCF/Configuration/IssuedTokenParametersEndpointAddressElement.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Configuration;
 5
 6namespace CoreWCF.Configuration
 7{
 8    public sealed class IssuedTokenParametersEndpointAddressElement : EndpointAddressElementBase
 9    {
 110        public IssuedTokenParametersEndpointAddressElement()
 11        {
 112        }
 13
 14        [ConfigurationProperty(ConfigurationStrings.Binding, DefaultValue = "")]
 15        public string Binding
 16        {
 017            get { return (string)base[ConfigurationStrings.Binding]; }
 18            set
 19            {
 020                if (string.IsNullOrEmpty(value))
 21                {
 022                    value = string.Empty;
 23                }
 024                base[ConfigurationStrings.Binding] = value;
 025            }
 26        }
 27
 28        [ConfigurationProperty(ConfigurationStrings.BindingConfiguration, DefaultValue = "")]
 29        public string BindingConfiguration
 30        {
 031            get { return (string)base[ConfigurationStrings.BindingConfiguration]; }
 32            set
 33            {
 034                if (string.IsNullOrEmpty(value))
 35                {
 036                    value = string.Empty;
 37                }
 038                base[ConfigurationStrings.BindingConfiguration] = value;
 039            }
 40        }
 41
 42        internal void Copy(IssuedTokenParametersEndpointAddressElement source)
 43        {
 044            base.Copy(source);
 045            BindingConfiguration = source.BindingConfiguration;
 046            Binding = source.Binding;
 047        }
 48
 49    }
 50}