< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.SecureConversationVersion
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/SecureConversationVersion.cs
Line coverage
88%
Covered lines: 15
Uncovered lines: 2
Coverable lines: 17
Total lines: 71
Line coverage: 88.2%
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

Metrics

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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/SecureConversationVersion.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.Xml;
 5
 6namespace CoreWCF.Security
 7{
 8    public abstract class SecureConversationVersion
 9    {
 710        internal SecureConversationVersion(XmlDictionaryString ns, XmlDictionaryString prefix)
 11        {
 712            Namespace = ns;
 713            Prefix = prefix;
 714        }
 15
 016        public XmlDictionaryString Namespace { get; }
 17
 018        public XmlDictionaryString Prefix { get; }
 19
 20        public static SecureConversationVersion Default
 21        {
 422            get { return WSSecureConversationFeb2005; }
 23        }
 24
 25        public static SecureConversationVersion WSSecureConversationFeb2005
 26        {
 27727            get { return WSSecureConversationVersionFeb2005.Instance; }
 28        }
 29
 30        public static SecureConversationVersion WSSecureConversation13
 31        {
 27632            get { return WSSecureConversationVersion13.Instance; }
 33        }
 34
 35        private class WSSecureConversationVersionFeb2005 : SecureConversationVersion
 36        {
 437            private static readonly WSSecureConversationVersionFeb2005 s_instance = new WSSecureConversationVersionFeb20
 38
 39            protected WSSecureConversationVersionFeb2005()
 440                : base(XD.SecureConversationFeb2005Dictionary.Namespace, XD.SecureConversationFeb2005Dictionary.Prefix)
 41            {
 442            }
 43
 44            public static SecureConversationVersion Instance
 45            {
 46                get
 47                {
 27748                    return s_instance;
 49                }
 50            }
 51        }
 52
 53        private class WSSecureConversationVersion13 : SecureConversationVersion
 54        {
 355            private static readonly WSSecureConversationVersion13 s_instance = new WSSecureConversationVersion13();
 56
 57            protected WSSecureConversationVersion13()
 358                : base(DXD.SecureConversationDec2005Dictionary.Namespace, DXD.SecureConversationDec2005Dictionary.Prefix
 59            {
 360            }
 61
 62            public static SecureConversationVersion Instance
 63            {
 64                get
 65                {
 27666                    return s_instance;
 67                }
 68            }
 69        }
 70    }
 71}