< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.WS2007FederationHttpBinding
Assembly: CoreWCF.Http
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/WS2007FederationHttpBinding.cs
Line coverage
53%
Covered lines: 7
Uncovered lines: 6
Coverable lines: 13
Total lines: 49
Line coverage: 53.8%
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
.cctor()100%11100%
.ctor()100%110%
.ctor(...)100%11100%
.ctor(...)100%11100%
.ctor(...)100%110%
CreateMessageSecurity()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/WS2007FederationHttpBinding.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 CoreWCF.Channels;
 5
 6namespace CoreWCF
 7{
 8    public class WS2007FederationHttpBinding : WSFederationHttpBinding
 9    {
 10        // static readonly ReliableMessagingVersion WS2007ReliableMessagingVersion = ReliableMessagingVersion.WSReliable
 11        //static readonly TransactionProtocol WS2007TransactionProtocol = TransactionProtocol.WSAtomicTransaction11;
 112        private static readonly MessageSecurityVersion _ws2007MessageSecurityVersion = MessageSecurityVersion.WSSecurity
 13
 14        public WS2007FederationHttpBinding()
 015            : base()
 16        {
 17          //  this.ReliableSessionBindingElement.ReliableMessagingVersion = WS2007ReliableMessagingVersion;
 18           // this.TransactionFlowBindingElement.TransactionProtocol = WS2007TransactionProtocol;
 019            HttpsTransport.MessageSecurityVersion = _ws2007MessageSecurityVersion;
 020        }
 21
 22        public WS2007FederationHttpBinding(WSFederationHttpSecurityMode securityMode)
 223            : this(securityMode, false)
 24        {
 225        }
 26
 27        public WS2007FederationHttpBinding(WSFederationHttpSecurityMode securityMode, bool reliableSessionEnabled)
 228            : base(securityMode, reliableSessionEnabled)
 29        {
 30           // this.ReliableSessionBindingElement.ReliableMessagingVersion = WS2007ReliableMessagingVersion;
 31           // this.TransactionFlowBindingElement.TransactionProtocol = WS2007TransactionProtocol;
 232            HttpsTransport.MessageSecurityVersion = _ws2007MessageSecurityVersion;
 233        }
 34
 35        private WS2007FederationHttpBinding(WSFederationHttpSecurity security, PrivacyNoticeBindingElement privacy, bool
 036            : base(security, privacy, reliableSessionEnabled)
 37        {
 38          //  this.ReliableSessionBindingElement.ReliableMessagingVersion = WS2007ReliableMessagingVersion;
 39           // this.TransactionFlowBindingElement.TransactionProtocol = WS2007TransactionProtocol;
 040            HttpsTransport.MessageSecurityVersion = _ws2007MessageSecurityVersion;
 041        }
 42
 43        protected override SecurityBindingElement CreateMessageSecurity()
 44        {
 5045            return Security.CreateMessageSecurity(false, _ws2007MessageSecurityVersion);
 46        }
 47
 48    }
 49}