< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.Transformation
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\Transformation.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\Transformation.Serialization.cs
Covered lines:0
Uncovered lines:28
Coverable lines:28
Total lines:90
Line coverage:0% (0 of 28)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\Transformation.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.Analytics.Synapse.Artifacts.Models
 11{
 12    /// <summary> A data flow transformation. </summary>
 13    public partial class Transformation
 14    {
 15        /// <summary> Initializes a new instance of Transformation. </summary>
 16        /// <param name="name"> Transformation name. </param>
 17        /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
 018        public Transformation(string name)
 19        {
 020            if (name == null)
 21            {
 022                throw new ArgumentNullException(nameof(name));
 23            }
 24
 025            Name = name;
 026        }
 27
 28        /// <summary> Initializes a new instance of Transformation. </summary>
 29        /// <param name="name"> Transformation name. </param>
 30        /// <param name="description"> Transformation description. </param>
 031        internal Transformation(string name, string description)
 32        {
 033            Name = name;
 034            Description = description;
 035        }
 36
 37        /// <summary> Transformation name. </summary>
 038        public string Name { get; set; }
 39        /// <summary> Transformation description. </summary>
 040        public string Description { get; set; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\Transformation.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.Analytics.Synapse.Artifacts.Models
 12{
 13    public partial class Transformation : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("name");
 019            writer.WriteStringValue(Name);
 020            if (Optional.IsDefined(Description))
 21            {
 022                writer.WritePropertyName("description");
 023                writer.WriteStringValue(Description);
 24            }
 025            writer.WriteEndObject();
 026        }
 27
 28        internal static Transformation DeserializeTransformation(JsonElement element)
 29        {
 030            string name = default;
 031            Optional<string> description = default;
 032            foreach (var property in element.EnumerateObject())
 33            {
 034                if (property.NameEquals("name"))
 35                {
 036                    name = property.Value.GetString();
 037                    continue;
 38                }
 039                if (property.NameEquals("description"))
 40                {
 041                    description = property.Value.GetString();
 42                    continue;
 43                }
 44            }
 045            return new Transformation(name, description.Value);
 46        }
 47    }
 48}