< Summary

Class:Azure.Data.Tables.Models.TableGeoReplication
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableGeoReplication.cs
C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableGeoReplication.Serialization.cs
C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\TableGeoReplication.cs
Covered lines:12
Uncovered lines:2
Coverable lines:14
Total lines:75
Line coverage:85.7% (12 of 14)
Covered branches:4
Total branches:4
Branch coverage:100% (4 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_LastSyncedOn()-0%100%
.ctor(...)-100%100%
get_Status()-100%100%
DeserializeTableGeoReplication(...)-100%100%
get_LastSyncedOn()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableGeoReplication.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.Data.Tables.Models
 11{
 12    /// <summary> The GeoReplication. </summary>
 13    public partial class TableGeoReplication
 14    {
 015        /// <summary> Initializes a new instance of TableGeoReplication. </summary>
 16        /// <param name="status"> The status of the secondary location. </param>
 17        /// <param name="lastSyncedOn"> A GMT date/time value, to the second. All primary writes preceding this value ar
 418        internal TableGeoReplication(TableGeoReplicationStatus status, DateTimeOffset lastSyncedOn)
 19        {
 420            Status = status;
 421            LastSyncedOn = lastSyncedOn;
 422        }
 23
 24        /// <summary> The status of the secondary location. </summary>
 425        public TableGeoReplicationStatus Status { get; }
 26    }
 27}

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Generated\Models\TableGeoReplication.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;
 9using System.Xml.Linq;
 10using Azure.Core;
 11
 12namespace Azure.Data.Tables.Models
 13{
 14    public partial class TableGeoReplication
 15    {
 16        internal static TableGeoReplication DeserializeTableGeoReplication(XElement element)
 17        {
 418            TableGeoReplicationStatus status = default;
 419            DateTimeOffset lastSyncedOn = default;
 420            if (element.Element("Status") is XElement statusElement)
 21            {
 422                status = new TableGeoReplicationStatus(statusElement.Value);
 23            }
 424            if (element.Element("LastSyncTime") is XElement lastSyncTimeElement)
 25            {
 426                lastSyncedOn = lastSyncTimeElement.GetDateTimeOffsetValue("R");
 27            }
 428            return new TableGeoReplication(status, lastSyncedOn);
 29        }
 30    }
 31}

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\TableGeoReplication.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using Azure.Core;
 6
 7namespace Azure.Data.Tables.Models
 8{
 9    /// <summary> The GeoReplication. </summary>
 10    [CodeGenModel("GeoReplication")]
 11    public partial class TableGeoReplication
 12    {
 13        /// <summary> A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be
 14        [CodeGenMember("LastSyncTime")]
 015        public DateTimeOffset LastSyncedOn { get; }
 16    }
 17}