Esempio n. 1
0
        public int GetTotal(IMonitoringApi api)
        {
            if (string.Equals(Name, nameof(Internal.StatusName.Succeeded),
                              StringComparison.CurrentCultureIgnoreCase))
            {
                return(api.PublishedSucceededCount());
            }

            return(api.PublishedFailedCount());
        }
Esempio n. 2
0
        public int GetTotal(IMonitoringApi api)
        {
            if (string.Equals(StatusName, Infrastructure.StatusName.Succeeded,
                              StringComparison.CurrentCultureIgnoreCase))
            {
                return(api.PublishedSucceededCount());
            }

            return(api.PublishedFailedCount());
        }
        public void Published_Failed_Count_Test()
        {
            var publishedFailedCount = _monitoring.PublishedFailedCount();

            Assert.Equal(0, publishedFailedCount);
        }