I am writing a unit test for testing serilog's diagnosticContext
is set with the correct properties and values. But I cannot get any properties from diagnosticContext
. Is there a way to assert that the properties are set correctly?
-
Try this: github.com/serilog/serilog-aspnetcore/issues/189– Henrique MauriCommented Sep 8, 2021 at 10:08
-
@HenriqueMauri, thanks! I ended up using mocks.– Yifan AiCommented Sep 8, 2021 at 10:47
-
Could you answer your question by posting the sample code you made? That way you can help other people with the same doubts.– Henrique MauriCommented Sep 8, 2021 at 11:33
-
@HenriqueMauri, I missed your comment. Here it is devops.wisetechglobal.com/wtg/BorderWise/_git/UMP/pullrequest/…– Yifan AiCommented Dec 14, 2021 at 3:51
Add a comment
|