< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Configuration.ServiceNameElement
Assembly: CoreWCF.ConfigurationManager
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.ConfigurationManager/src/CoreWCF/Configuration/ServiceNameElement.cs
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 22
Line coverage: 66.6%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.ConfigurationManager/src/CoreWCF/Configuration/ServiceNameElement.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 ServiceNameElement : ConfigurationElement
 9    {
 10        [ConfigurationProperty(ExtendedProtectionConfigurationStrings.Name, IsKey = true, IsRequired = true)]
 11        public string Name
 12        {
 413            get { return (string)this[ExtendedProtectionConfigurationStrings.Name]; }
 014            set { this[ExtendedProtectionConfigurationStrings.Name] = value; }
 15        }
 16
 17        internal string Key
 18        {
 319            get { return Name; }
 20        }
 21    }
 22}

Methods/Properties

Name()
Name(System.String)
Key()