/// <summary>
 /// Creates a new QueueServiceStatistics instance for mocking.
 /// </summary>
 public static QueueServiceStatistics QueueServiceStatistics(
     QueueGeoReplication geoReplication = default)
 {
     return(new QueueServiceStatistics()
     {
         GeoReplication = geoReplication,
     });
 }
Exemple #2
0
        internal static QueueServiceStatistics DeserializeQueueServiceStatistics(XElement element)
        {
            QueueGeoReplication geoReplication = default;

            if (element.Element("GeoReplication") is XElement geoReplicationElement)
            {
                geoReplication = QueueGeoReplication.DeserializeQueueGeoReplication(geoReplicationElement);
            }
            return(new QueueServiceStatistics(geoReplication));
        }