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

            return(api.ReceivedFailedCount());
        }
コード例 #2
0
        public void Received_Failed_Count_Test()
        {
            var receivedFailedCount = _monitoring.ReceivedFailedCount();

            Assert.Equal(1, receivedFailedCount);
        }