public void SendServiceStatistics_HttpHandlerPostAsyncRecivesOneCall()
        {
            var serviceUpTime = TimeSpan.MaxValue;

            _usageStatisticsManager.EnableUsageStatistics = true;
            _usageStatisticsManager.SendServiceStatistics(serviceUpTime);

            _usageStatisticsSender.Received(1).SendAsync(Arg.Any <IUsageMetric>());
        }
示例#2
0
 public void HandleServiceStopped(TimeSpan serviceUptime)
 {
     _usageStatisticsManager.SendServiceStatistics(serviceUptime);
 }