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>());
        }
예제 #2
0
 public void HandleJobCompleted(Job job, TimeSpan duration)
 {
     _usageStatisticsManager.SendUsageStatistics(duration, job, "Success");
 }