Adds a DebugChannel for TelemetryClient

This commit is contained in:
Janus C. H. Knudsen 2025-02-05 18:38:29 +01:00
parent cdd645bb3b
commit b2c0919a8c
8 changed files with 203 additions and 47 deletions

View file

@ -1,6 +1,9 @@
using Autofac;
using System.Data;
using Insight.Database;
using Insight.Database;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Extensions.Logging;
using Core.Telemetry;
namespace Tests
{
@ -18,7 +21,18 @@ namespace Tests
conn.ExecuteSql("SELECT 1 as p");
}
[TestMethod]
public void MyTestMethod()
{
var logger = Container.Resolve<Microsoft.ApplicationInsights.TelemetryClient>();
for (int i = 0; i < 5; i++)
{
logger.TrackTrace("Hello 23");
}
}
[TestMethod]
public void TryTenantSetupService()