< Summary

Class:Azure.ResourceManager.Resources.Models.DeploymentWhatIfSettings
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentWhatIfSettings.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentWhatIfSettings.Serialization.cs
Covered lines:9
Uncovered lines:3
Coverable lines:12
Total lines:54
Line coverage:75% (9 of 12)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentWhatIfSettings.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.Resources.Models
 9{
 10    /// <summary> Deployment What-If operation settings. </summary>
 11    public partial class DeploymentWhatIfSettings
 12    {
 13        /// <summary> Initializes a new instance of DeploymentWhatIfSettings. </summary>
 3614        public DeploymentWhatIfSettings()
 15        {
 3616        }
 17
 18        /// <summary> Initializes a new instance of DeploymentWhatIfSettings. </summary>
 19        /// <param name="resultFormat"> The format of the What-If results. </param>
 020        internal DeploymentWhatIfSettings(WhatIfResultFormat? resultFormat)
 21        {
 022            ResultFormat = resultFormat;
 023        }
 24
 25        /// <summary> The format of the What-If results. </summary>
 18026        public WhatIfResultFormat? ResultFormat { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentWhatIfSettings.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.Resources.Models
 12{
 13    public partial class DeploymentWhatIfSettings : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 7217            writer.WriteStartObject();
 7218            if (ResultFormat != null)
 19            {
 7220                writer.WritePropertyName("resultFormat");
 7221                writer.WriteStringValue(ResultFormat.Value.ToSerialString());
 22            }
 7223            writer.WriteEndObject();
 7224        }
 25    }
 26}