예제 #1
0
        public int GetTotal(IMonitoringApi api)
        {
            if (string.Equals(StatusName, Infrastructure.StatusName.Succeeded,
                              StringComparison.CurrentCultureIgnoreCase))
            {
                return(api.ReceivedSucceededCount());
            }

            return(api.ReceivedFailedCount());
        }
        public void Received_Failed_Count_Test()
        {
            var receivedFailedCount = _monitoring.ReceivedFailedCount();

            Assert.Equal(1, receivedFailedCount);
        }