< Summary

Class:Azure.Messaging.EventHubs.EventHubProperties
Assembly:Azure.Messaging.EventHubs
File(s):C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.Messaging.EventHubs\src\EventHubProperties.cs
Covered lines:10
Uncovered lines:0
Coverable lines:10
Total lines:50
Line coverage:100% (10 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Name()-100%100%
get_CreatedOn()-100%100%
get_PartitionIds()-100%100%
.ctor(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventhub\Azure.Messaging.EventHubs\src\EventHubProperties.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Messaging.EventHubs
 7{
 8    /// <summary>
 9    ///   A set of information for an Event Hub.
 10    /// </summary>
 11    ///
 12    public class EventHubProperties
 13    {
 14        /// <summary>
 15        ///   The name of the Event Hub, specific to the namespace
 16        ///   that contains it.
 17        /// </summary>
 18        ///
 219        public string Name { get; }
 20
 21        /// <summary>
 22        ///   The date and time, in UTC, at which the Event Hub was created.
 23        /// </summary>
 24        ///
 225        public DateTimeOffset CreatedOn { get; }
 26
 27        /// <summary>
 28        ///   The set of unique identifiers for each partition in the Event Hub.
 29        /// </summary>
 30        ///
 7831        public string[] PartitionIds { get; }
 32
 33        /// <summary>
 34        ///   Initializes a new instance of the <see cref="EventHubProperties"/> class.
 35        /// </summary>
 36        ///
 37        /// <param name="name">The name of the Event Hub.</param>
 38        /// <param name="createdOn">The date and time at which the Event Hub was created.</param>
 39        /// <param name="partitionIds">The set of unique identifiers for each partition.</param>
 40        ///
 8241        protected internal EventHubProperties(string name,
 8242                                              DateTimeOffset createdOn,
 8243                                              string[] partitionIds)
 44        {
 8245            Name = name;
 8246            CreatedOn = createdOn;
 8247            PartitionIds = partitionIds;
 8248        }
 49    }
 50}