10 references to CreateClient
Microsoft.AspNetCore.Testing.Tests (10)
FakesExtensionsTests.cs (10)
77var client = host.CreateClient(new FakeCertificateHttpClientHandler(certificate)); 88using var client = hostMock.Object.CreateClient(handler); 99using var client = hostMock.Object.CreateClient(); 109var exception = Record.Exception(() => hostMock.Object.CreateClient(null, _ => false)); 121var exception = Record.Exception(() => hostMock.Object.CreateClient(null, _ => false)); 131var exception = Record.Exception(() => ((IHost)null!).CreateClient(new TestHandler(), _ => true)); 142var exception = Record.Exception(() => hostMock.Object.CreateClient(new TestHandler(), _ => true)); 152using var client = hostMock.Object.CreateClient(null, x => x.AbsoluteUri == _urlAddresses[1]); 164using var client = host.CreateClient(); 176using var client = host.CreateClient();