public int GetTotal(IMonitoringApi api) { if (string.Equals(Name, nameof(Internal.StatusName.Succeeded), StringComparison.CurrentCultureIgnoreCase)) { return(api.PublishedSucceededCount()); } return(api.PublishedFailedCount()); }
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); }