Ejemplo n.º 1
0
 private void AssertReceiverMonitorCallCounters(EventHubReceiverMonitorCounters totalReceiverMonitorCallCounters)
 {
     Assert.Equal(ehPartitionCountPerSilo, totalReceiverMonitorCallCounters.TrackInitializationCallCounter);
     Assert.True(totalReceiverMonitorCallCounters.TrackMessagesReceivedCallCounter > 0);
     Assert.True(totalReceiverMonitorCallCounters.TrackReadCallCounter > 0);
     Assert.Equal(0, totalReceiverMonitorCallCounters.TrackShutdownCallCounter);
 }
Ejemplo n.º 2
0
        private void AssertReceiverMonitorCallCounters(EventHubReceiverMonitorCounters totalReceiverMonitorCallCounters)
        {
            var c = totalReceiverMonitorCallCounters;

            Assert.True(ehPartitionCountPerSilo == c.TrackInitializationCallCounter, $"Expected {nameof(c.TrackInitializationCallCounter)} == {ehPartitionCountPerSilo}, got {c.TrackInitializationCallCounter}");
            Assert.True(c.TrackMessagesReceivedCallCounter > 0, $"Expected {nameof(c.TrackMessagesReceivedCallCounter)} > 0, got {c.TrackMessagesReceivedCallCounter}");
            Assert.True(c.TrackReadCallCounter > 0, $"Expected {nameof(c.TrackReadCallCounter)} > 0, got {c.TrackReadCallCounter}");
            Assert.True(0 == c.TrackShutdownCallCounter, $"Expected {nameof(c.TrackShutdownCallCounter)} == 0, got {c.TrackShutdownCallCounter}");
        }
 private EventHubReceiverMonitorForTesting()
 {
     this.CallCounters = new EventHubReceiverMonitorCounters();
 }
Ejemplo n.º 4
0
 private EventHubReceiverMonitorForTesting(EventHubReceiverMonitorDimensions dimensions, Logger logger)
 {
     this.CallCounters = new EventHubReceiverMonitorCounters();
 }