public void SendUserStatistics_HttpHandlerPostAsyncRecivesOneCall() { var job = BuildJob(); var duration = TimeSpan.MaxValue; var status = "test status"; _usageStatisticsManager.EnableUsageStatistics = true; _usageStatisticsManager.SendUsageStatistics(duration, job, status); _usageStatisticsSender.Received(1).SendAsync(Arg.Any <IUsageMetric>()); }
public void HandleJobCompleted(Job job, TimeSpan duration) { _usageStatisticsManager.SendUsageStatistics(duration, job, "Success"); }