< Summary

Class:Azure.Security.KeyVault.Administration.Models.RoleAssignmentCreateParameters
Assembly:Azure.Security.KeyVault.Administration
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RoleAssignmentCreateParameters.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RoleAssignmentCreateParameters.Serialization.cs
Covered lines:10
Uncovered lines:1
Coverable lines:11
Total lines:54
Line coverage:90.9% (10 of 11)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-80%50%
get_Properties()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RoleAssignmentCreateParameters.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;
 9
 10namespace Azure.Security.KeyVault.Administration.Models
 11{
 12    /// <summary> Role assignment create parameters. </summary>
 13    internal partial class RoleAssignmentCreateParameters
 14    {
 15        /// <summary> Initializes a new instance of RoleAssignmentCreateParameters. </summary>
 16        /// <param name="properties"> Role assignment properties. </param>
 17        /// <exception cref="ArgumentNullException"> <paramref name="properties"/> is null. </exception>
 2618        public RoleAssignmentCreateParameters(RoleAssignmentProperties properties)
 19        {
 2620            if (properties == null)
 21            {
 022                throw new ArgumentNullException(nameof(properties));
 23            }
 24
 2625            Properties = properties;
 2626        }
 27
 28        /// <summary> Role assignment properties. </summary>
 2629        public RoleAssignmentProperties Properties { get; }
 30    }
 31}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RoleAssignmentCreateParameters.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.Security.KeyVault.Administration.Models
 12{
 13    internal partial class RoleAssignmentCreateParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 2617            writer.WriteStartObject();
 2618            writer.WritePropertyName("properties");
 2619            writer.WriteObjectValue(Properties);
 2620            writer.WriteEndObject();
 2621        }
 22    }
 23}