Adds a DebugChannel for TelemetryClient
This commit is contained in:
parent
cdd645bb3b
commit
b2c0919a8c
8 changed files with 203 additions and 47 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue