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_Succeeded_Count_Test() { var publishedSucceededCount = _monitoring.PublishedSucceededCount(); Assert.Equal(1, publishedSucceededCount); }