< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\DateAfterModification.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> Object to define the number of days after last modification. </summary>
 11    public partial class DateAfterModification
 12    {
 13        /// <summary> Initializes a new instance of DateAfterModification. </summary>
 14        /// <param name="daysAfterModificationGreaterThan"> Value indicating the age in days after last modification. </
 4815        public DateAfterModification(float daysAfterModificationGreaterThan)
 16        {
 4817            DaysAfterModificationGreaterThan = daysAfterModificationGreaterThan;
 4818        }
 19
 20        /// <summary> Value indicating the age in days after last modification. </summary>
 12821        public float DaysAfterModificationGreaterThan { get; set; }
 22    }
 23}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\DateAfterModification.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 DateAfterModification : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 1617            writer.WriteStartObject();
 1618            writer.WritePropertyName("daysAfterModificationGreaterThan");
 1619            writer.WriteNumberValue(DaysAfterModificationGreaterThan);
 1620            writer.WriteEndObject();
 1621        }
 22
 23        internal static DateAfterModification DeserializeDateAfterModification(JsonElement element)
 24        {
 3225            float daysAfterModificationGreaterThan = default;
 12826            foreach (var property in element.EnumerateObject())
 27            {
 3228                if (property.NameEquals("daysAfterModificationGreaterThan"))
 29                {
 3230                    daysAfterModificationGreaterThan = property.Value.GetSingle();
 31                    continue;
 32                }
 33            }
 3234            return new DateAfterModification(daysAfterModificationGreaterThan);
 35        }
 36    }
 37}