Auto stash before merge of "main" and "origin/main"

This commit is contained in:
Janus C. H. Knudsen 2025-02-06 17:48:24 +01:00
parent 72544d62e2
commit 5ca874abe9
6 changed files with 81 additions and 14 deletions

View file

@ -21,17 +21,31 @@ namespace Tests
conn.ExecuteSql("SELECT 1 as p");
}
static HttpClient _client = new HttpClient();
[TestMethod]
public void MyTestMethod()
public async Task MyTestMethod()
{
_client.BaseAddress = new Uri("http://localhost:5341");
var l = new SeqLogger(_client, "", "");
for (int i = 0; i < 20; i++)
{
await l.LogToSeq(
"Bruger {UserId} loggede ind",
"Debug",
new Dictionary<string, object> { { "UserId", "12345" }, { "Counter", i++ } }
);
}
var logger = Container.Resolve<Microsoft.ApplicationInsights.TelemetryClient>();
for (int i = 0; i < 5; i++)
{
logger.TrackTrace("Hello 23");
logger.TrackTrace("Hello 23" , Microsoft.ApplicationInsights.DataContracts.SeverityLevel.Information);
}
}
[TestMethod]