< Summary

Class:Azure.ResourceManager.Network.Models.WebApplicationFirewallTransform
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\WebApplicationFirewallTransform.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:62
Line coverage:0% (0 of 15)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Lowercase()-0%100%
get_Trim()-0%100%
get_UrlDecode()-0%100%
get_UrlEncode()-0%100%
get_RemoveNulls()-0%100%
get_HtmlEntityDecode()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%0%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\WebApplicationFirewallTransform.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.ComponentModel;
 10
 11namespace Azure.ResourceManager.Network.Models
 12{
 13    /// <summary> Transforms applied before matching. </summary>
 14    public readonly partial struct WebApplicationFirewallTransform : IEquatable<WebApplicationFirewallTransform>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="WebApplicationFirewallTransform"/> values are the same. </summary>
 19        public WebApplicationFirewallTransform(string value)
 20        {
 021            _value = value ?? throw new ArgumentNullException(nameof(value));
 022        }
 23
 24        private const string LowercaseValue = "Lowercase";
 25        private const string TrimValue = "Trim";
 26        private const string UrlDecodeValue = "UrlDecode";
 27        private const string UrlEncodeValue = "UrlEncode";
 28        private const string RemoveNullsValue = "RemoveNulls";
 29        private const string HtmlEntityDecodeValue = "HtmlEntityDecode";
 30
 31        /// <summary> Lowercase. </summary>
 032        public static WebApplicationFirewallTransform Lowercase { get; } = new WebApplicationFirewallTransform(Lowercase
 33        /// <summary> Trim. </summary>
 034        public static WebApplicationFirewallTransform Trim { get; } = new WebApplicationFirewallTransform(TrimValue);
 35        /// <summary> UrlDecode. </summary>
 036        public static WebApplicationFirewallTransform UrlDecode { get; } = new WebApplicationFirewallTransform(UrlDecode
 37        /// <summary> UrlEncode. </summary>
 038        public static WebApplicationFirewallTransform UrlEncode { get; } = new WebApplicationFirewallTransform(UrlEncode
 39        /// <summary> RemoveNulls. </summary>
 040        public static WebApplicationFirewallTransform RemoveNulls { get; } = new WebApplicationFirewallTransform(RemoveN
 41        /// <summary> HtmlEntityDecode. </summary>
 042        public static WebApplicationFirewallTransform HtmlEntityDecode { get; } = new WebApplicationFirewallTransform(Ht
 43        /// <summary> Determines if two <see cref="WebApplicationFirewallTransform"/> values are the same. </summary>
 044        public static bool operator ==(WebApplicationFirewallTransform left, WebApplicationFirewallTransform right) => l
 45        /// <summary> Determines if two <see cref="WebApplicationFirewallTransform"/> values are not the same. </summary
 046        public static bool operator !=(WebApplicationFirewallTransform left, WebApplicationFirewallTransform right) => !
 47        /// <summary> Converts a string to a <see cref="WebApplicationFirewallTransform"/>. </summary>
 048        public static implicit operator WebApplicationFirewallTransform(string value) => new WebApplicationFirewallTrans
 49
 50        /// <inheritdoc />
 51        [EditorBrowsable(EditorBrowsableState.Never)]
 052        public override bool Equals(object obj) => obj is WebApplicationFirewallTransform other && Equals(other);
 53        /// <inheritdoc />
 054        public bool Equals(WebApplicationFirewallTransform other) => string.Equals(_value, other._value, StringCompariso
 55
 56        /// <inheritdoc />
 57        [EditorBrowsable(EditorBrowsableState.Never)]
 058        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 59        /// <inheritdoc />
 060        public override string ToString() => _value;
 61    }
 62}