Base:
16 references to ToString
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (13)
Logging\AcceptanceTests.cs (8)
192
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.
ToString
());
252
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.
ToString
());
323
Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Post.
ToString
());
384
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.
ToString
());
423
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Delete.
ToString
());
582
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.
ToString
());
623
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Put.
ToString
());
657
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Put.
ToString
());
Logging\AcceptanceTests.Mvc.cs (5)
84
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.
ToString
());
122
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.
ToString
());
174
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.
ToString
());
209
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.
ToString
());
252
Assert.Single(state, x => x.Key == HttpLoggingTagNames.Method && x.Value == HttpMethod.Get.
ToString
());
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
115
req.Method = request.Method.
ToString
();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\AcceptanceTests.cs (2)
361
httpRequestMessage.SetRequestMetadata(new RequestMetadata(httpRequestMessage.Method.
ToString
(), RequestRoute));
376
.Which.Value.Should().Be(httpRequestMessage.Method.
ToString
());