public void nothing_is_reported_to_agent_health_when_there_are_no_sql_traces() { // Act _harvestAction(); // Assert Mock.Assert(() => _agentHealthReporter.ReportSqlTracesRecollected(Arg.IsAny <int>()), Occurs.Never()); Mock.Assert(() => _agentHealthReporter.ReportSqlTracesSent(Arg.IsAny <int>()), Occurs.Never()); }
private void Retain(ICollection <SqlTraceWireModel> traces) { _agentHealthReporter.ReportSqlTracesRecollected(traces.Count); var tracesCollection = new SqlTraceStatsCollection(); foreach (var trace in traces) { tracesCollection.Insert(trace); } Collect(tracesCollection); }