33 references to CreateClient
Aspire.Hosting.DevTunnels.Tests (33)
DevTunnelCliClientTests.cs (33)
34var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new() 50var client = CreateClient(cli); 62var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new" }); 78await Assert.ThrowsAsync<DevTunnelNotFoundException>(() => CreateClient(cli).GetTunnelAsync("mytunnel.usw2")); 94var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new" }); 121var client = CreateClient(cli); 142await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 156await Assert.ThrowsAnyAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new" })); 166var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new()); 176await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 186await CreateClient(cli).CreateTunnelAsync("mytunnel", new()); 198await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new())); 213await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync(requested, new() { AllowAnonymous = true })); 225var result = await CreateClient(cli).CreateTunnelAsync(requested, new()); 239CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = true })); 250CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new", AllowAnonymous = true })); 260await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new())); 271CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { AllowAnonymous = false })); 280await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).GetTunnelAsync("mytunnel.usw2")); 298await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = allowAnonymous }); 314CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { AllowAnonymous = false })); 325await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new())); 337var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() 354await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"] }); 368await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() 414var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, 436var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, 458var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, 473await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, 488await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, 540var port = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, 558var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() 575var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http" });