1 write to Id
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogRecord.cs (1)
33
Id
= id;
49 references to Id
Microsoft.Extensions.Diagnostics.Testing.Tests (3)
Logging\FakeLoggerTests.cs (3)
42
Assert.Equal(0, records[0].
Id
.Id);
51
Assert.Equal(0, records[0].
Id
.Id);
59
Assert.Equal(0, logger.LatestRecord.
Id
.Id);
Microsoft.Extensions.Http.Diagnostics.Tests (6)
Logging\AcceptanceTests.cs (2)
624
r => Assert.Equal("RequestPipelineStart", r.
Id
.Name),
625
r => Assert.Equal("RequestPipelineEnd", r.
Id
.Name));
Logging\HttpClientLoggerTest.cs (4)
780
Assert.Equal(nameof(Log.EnrichmentError), logRecords[0].
Id
.Name);
783
Assert.Equal(nameof(Log.OutgoingRequest), logRecords[1].
Id
.Name);
825
Assert.Equal(nameof(Log.EnrichmentError), logRecords[0].
Id
.Name);
828
Assert.Equal(nameof(Log.OutgoingRequestError), logRecords[1].
Id
.Name);
Microsoft.Extensions.Telemetry.Tests (14)
Logging\ExtendedLoggerTests.cs (14)
79
Assert.Equal(new EventId(0), snap[0].
Id
);
95
Assert.Equal(new EventId(2, "ID2"), snap[1].
Id
);
164
Assert.Equal(new EventId(0), snap[0].
Id
);
171
Assert.Equal(new EventId(2, "ID2"), snap[1].
Id
);
229
Assert.Equal(new EventId(0, "ID0"), snap[0].
Id
);
236
Assert.Equal(new EventId(0, "ID0b"), snap[1].
Id
);
243
Assert.Equal(new EventId(2, "ID2"), snap[2].
Id
);
250
Assert.Equal(new EventId(2, "ID2b"), snap[3].
Id
);
289
Assert.Equal(new EventId(0, "ID0"), snap[0].
Id
);
358
Assert.Equal(new EventId(0, "ID0"), snap[0].
Id
);
467
Assert.Equal(new EventId(0, "ID0"), snap[0].
Id
);
472
Assert.Equal(new EventId(0, "ID0b"), snap[1].
Id
);
477
Assert.Equal(new EventId(2, "ID2"), snap[2].
Id
);
482
Assert.Equal(new EventId(2, "ID2b"), snap[3].
Id
);
Microsoft.Gen.Logging.Generated.Tests (26)
LogMethodTests.cs (16)
226
Assert.Equal(0, collector.LatestRecord.
Id
.Id);
234
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
242
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
250
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
258
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
266
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
274
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
285
Assert.NotEqual(0, logRecord.
Id
.Id);
286
Assert.Equal("M7", logRecord.
Id
.Name);
296
Assert.Equal(42, logRecord.
Id
.Id);
297
Assert.Equal("EN1", logRecord.
Id
.Name);
339
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
347
Assert.NotEqual(0, collector.LatestRecord.
Id
.Id);
568
Assert.Equal("CustomEventName", collector.LatestRecord.
Id
.Name);
578
Assert.NotEqual(0, logRecord.
Id
.Id);
579
Assert.Equal("M1_Event", logRecord.
Id
.Name);
LogPropertiesTests.cs (5)
473
Assert.NotEqual(0, latestRecord.
Id
.Id);
500
Assert.Equal(6, latestRecord.
Id
.Id);
524
Assert.NotEqual(0, latestRecord.
Id
.Id);
549
Assert.NotEqual(0, latestRecord.
Id
.Id);
575
Assert.NotEqual(0, latestRecord.
Id
.Id);
TagProviderTests.cs (5)
83
Assert.NotEqual(0, latestRecord.
Id
.Id);
106
Assert.NotEqual(0, latestRecord.
Id
.Id);
127
Assert.NotEqual(0, latestRecord.
Id
.Id);
138
Assert.NotEqual(0, latestRecord.
Id
.Id);
188
Assert.NotEqual(0, latestRecord.
Id
.Id);