public void Event_seen_reported_on_collect() { // Act _transactionEventAggregator.Collect(new TransactionEventWireModel(_attribValues, false, 0.1f)); // Assert Mock.Assert(() => _agentHealthReporter.ReportTransactionEventCollected()); }
public override void Collect(TransactionEventWireModel transactionEventWireModel) { _agentHealthReporter.ReportTransactionEventCollected(); _readerWriterLock.EnterReadLock(); try { AddEventToCollection(transactionEventWireModel); } finally { _readerWriterLock.ExitReadLock(); } }