< Summary

Class:Azure.ResourceManager.Storage.Models.ChangeFeed
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ChangeFeed.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ChangeFeed.Serialization.cs
Covered lines:18
Uncovered lines:0
Coverable lines:18
Total lines:72
Line coverage:100% (18 of 18)
Covered branches:8
Total branches:8
Branch coverage:100% (8 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_Enabled()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%
DeserializeChangeFeed(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ChangeFeed.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
 8namespace Azure.ResourceManager.Storage.Models
 9{
 10    /// <summary> The blob service properties for change feed events. </summary>
 11    public partial class ChangeFeed
 12    {
 13        /// <summary> Initializes a new instance of ChangeFeed. </summary>
 814        public ChangeFeed()
 15        {
 816        }
 17
 18        /// <summary> Initializes a new instance of ChangeFeed. </summary>
 19        /// <param name="enabled"> Indicates whether change feed event logging is enabled for the Blob service. </param>
 1620        internal ChangeFeed(bool? enabled)
 21        {
 1622            Enabled = enabled;
 1623        }
 24
 25        /// <summary> Indicates whether change feed event logging is enabled for the Blob service. </summary>
 4826        public bool? Enabled { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ChangeFeed.Serialization.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Storage.Models
 12{
 13    public partial class ChangeFeed : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 817            writer.WriteStartObject();
 818            if (Enabled != null)
 19            {
 820                writer.WritePropertyName("enabled");
 821                writer.WriteBooleanValue(Enabled.Value);
 22            }
 823            writer.WriteEndObject();
 824        }
 25
 26        internal static ChangeFeed DeserializeChangeFeed(JsonElement element)
 27        {
 1628            bool? enabled = default;
 6429            foreach (var property in element.EnumerateObject())
 30            {
 1631                if (property.NameEquals("enabled"))
 32                {
 1633                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 1637                    enabled = property.Value.GetBoolean();
 38                    continue;
 39                }
 40            }
 1641            return new ChangeFeed(enabled);
 42        }
 43    }
 44}