< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.Tokens.RecipientServiceModelSecurityTokenRequirement
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/Tokens/RecipientServiceModelSecurityTokenRequirement.cs
Line coverage
85%
Covered lines: 6
Uncovered lines: 1
Coverable lines: 7
Total lines: 69
Line coverage: 85.7%
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%
ToString()100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/Tokens/RecipientServiceModelSecurityTokenRequirement.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;
 5
 6namespace CoreWCF.Security.Tokens
 7{
 8    public sealed class RecipientServiceModelSecurityTokenRequirement : ServiceModelSecurityTokenRequirement
 9    {
 10        public RecipientServiceModelSecurityTokenRequirement()
 9911            : base()
 12        {
 9913            Properties.Add(IsInitiatorProperty, (object)false);
 9914        }
 15
 16        public Uri ListenUri
 17        {
 18            get
 19            {
 2320                return GetPropertyOrDefault<Uri>(ListenUriProperty, null);
 21            }
 22            set
 23            {
 9924                Properties[ListenUriProperty] = value;
 9925            }
 26        }
 27
 28        //public AuditLogLocation AuditLogLocation
 29        //{
 30        //    get
 31        //    {
 32        //        return GetPropertyOrDefault<AuditLogLocation>(AuditLogLocationProperty, ServiceSecurityAuditBehavior.d
 33        //    }
 34        //    set
 35        //    {
 36        //        this.Properties[AuditLogLocationProperty] = value;
 37        //    }
 38        //}
 39
 40        //public bool SuppressAuditFailure
 41        //{
 42        //    get
 43        //    {
 44        //        return GetPropertyOrDefault<bool>(SuppressAuditFailureProperty, ServiceSecurityAuditBehavior.defaultSu
 45        //    }
 46        //    set
 47        //    {
 48        //        this.Properties[SuppressAuditFailureProperty] = value;
 49        //    }
 50        //}
 51
 52        //public AuditLevel MessageAuthenticationAuditLevel
 53        //{
 54        //    get
 55        //    {
 56        //        return GetPropertyOrDefault<AuditLevel>(MessageAuthenticationAuditLevelProperty, ServiceSecurityAuditB
 57        //    }
 58        //    set
 59        //    {
 60        //        this.Properties[MessageAuthenticationAuditLevelProperty] = value;
 61        //    }
 62        //}
 63
 64        public override string ToString()
 65        {
 066            return InternalToString();
 67        }
 68    }
 69}