9 references to CreateClient
Microsoft.AspNetCore.Testing.Tests (9)
FakesExtensionsTests.cs (9)
88
using var client = hostMock.Object.
CreateClient
(handler);
99
using var client = hostMock.Object.
CreateClient
();
109
var exception = Record.Exception(() => hostMock.Object.
CreateClient
(null, _ => false));
120
var exception = Record.Exception(() => hostMock.Object.
CreateClient
(null, _ => false));
129
var exception = Record.Exception(() => ((IHost)null!).
CreateClient
(new TestHandler(), _ => true));
140
var exception = Record.Exception(() => hostMock.Object.
CreateClient
(new TestHandler(), _ => true));
150
using var client = hostMock.Object.
CreateClient
(null, x => x.AbsoluteUri == _urlAddresses[1]);
162
using var client = host.
CreateClient
();
174
using var client = host.
CreateClient
();