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