< Summary

Class:Azure.Messaging.ServiceBus.Management.TopicRuntimeProperties
Assembly:Azure.Messaging.ServiceBus
File(s):C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Management\TopicRuntimeProperties.cs
Covered lines:10
Uncovered lines:0
Coverable lines:10
Total lines:53
Line coverage:100% (10 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Name()-100%100%
get_AccessedAt()-100%100%
get_CreatedAt()-100%100%
get_UpdatedAt()-100%100%
get_SizeInBytes()-100%100%
get_SubscriptionCount()-100%100%
get_ScheduledMessageCount()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\servicebus\Azure.Messaging.ServiceBus\src\Management\TopicRuntimeProperties.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Messaging.ServiceBus.Management
 7{
 8    /// <summary>
 9    /// Represents the runtime properties of the topic.
 10    /// </summary>
 11    public class TopicRuntimeProperties
 12    {
 813        internal TopicRuntimeProperties(string name)
 14        {
 815            Name = name;
 816        }
 17
 18        /// <summary>
 19        /// The name of the topic.
 20        /// </summary>
 2021        public string Name { get; internal set; }
 22
 23        /// <summary>
 24        /// The <see cref="DateTime"/> when the entity was last accessed.
 25        /// </summary>
 2026        public DateTimeOffset AccessedAt { get; internal set; }
 27
 28        /// <summary>
 29        /// The <see cref="DateTimeOffset"/> when the entity was created.
 30        /// </summary>
 2031        public DateTimeOffset CreatedAt { get; internal set; }
 32
 33        /// <summary>
 34        /// The <see cref="DateTimeOffset"/> when the entity description was last updated.
 35        /// </summary>
 2436        public DateTimeOffset UpdatedAt { get; internal set; }
 37
 38        /// <summary>
 39        /// The current size of the entity in bytes.
 40        /// </summary>
 1641        public long SizeInBytes { get; internal set; }
 42
 43        /// <summary>
 44        /// The number of subscriptions to the topic.
 45        /// </summary>
 2046        public int SubscriptionCount { get; internal set; }
 47
 48        /// <summary>
 49        /// The number of messages that are scheduled to be enqueued.
 50        /// </summary>
 1651        public long ScheduledMessageCount { get; internal set; }
 52    }
 53}