public void SendServiceStatistics_HttpHandlerPostAsyncRecivesOneCall() { var serviceUpTime = TimeSpan.MaxValue; _usageStatisticsManager.EnableUsageStatistics = true; _usageStatisticsManager.SendServiceStatistics(serviceUpTime); _usageStatisticsSender.Received(1).SendAsync(Arg.Any <IUsageMetric>()); }
public void HandleServiceStopped(TimeSpan serviceUptime) { _usageStatisticsManager.SendServiceStatistics(serviceUptime); }