コード例 #1
0
ファイル: PublishedPage.cs プロジェクト: 5l1v3r1/CAP-1
        public int GetTotal(IMonitoringApi api)
        {
            if (string.Equals(Name, nameof(Internal.StatusName.Succeeded),
                              StringComparison.CurrentCultureIgnoreCase))
            {
                return(api.PublishedSucceededCount());
            }

            return(api.PublishedFailedCount());
        }
コード例 #2
0
ファイル: PublishedPage.cs プロジェクト: zche/CAP-2.3.0
        public int GetTotal(IMonitoringApi api)
        {
            if (string.Equals(StatusName, Infrastructure.StatusName.Succeeded,
                              StringComparison.CurrentCultureIgnoreCase))
            {
                return(api.PublishedSucceededCount());
            }

            return(api.PublishedFailedCount());
        }
コード例 #3
0
        public void Published_Succeeded_Count_Test()
        {
            var publishedSucceededCount = _monitoring.PublishedSucceededCount();

            Assert.Equal(1, publishedSucceededCount);
        }