27 references to SendAsync
Aspire.Dashboard.Tests (27)
Terminal\TerminalWebSocketTests.cs (27)
27await SendAsync(browser, """{"type":"requestPrimary","columns":100,"rows":30}""", timeout.Token); 38await SendAsync(browser, JsonSerializer.Serialize(new { type = "resize", columns = width, rows = 30 }), timeout.Token); 51await SendAsync(browser, """{"type":"resize","columns":20,"rows":30}""", timeout.Token); 74await SendAsync(first, """{"type":"resize","columns":80,"rows":24}""", timeout.Token); 75await SendAsync(first, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token); 88await SendAsync(second, """{"type":"requestPrimary","columns":132,"rows":30}""", timeout.Token); 394await SendAsync(second, """{"type":"input","text":"x"}""", timeout.Token); 424await SendAsync(browser, """{"type":"input","text":"blocked-input"}""", timeout.Token); 425await SendAsync(browser, """{"type":"paste","text":"blocked-paste"}""", timeout.Token); 427await SendAsync(browser, """{"type":"key","key":"Enter","ctrl":false,"alt":false,"shift":false}""", timeout.Token); 428await SendAsync(browser, """{"type":"mouse","action":"down","button":"left","x":1,"y":1}""", timeout.Token); 429await SendAsync(browser, """{"type":"resize","columns":80,"rows":24}""", timeout.Token); 430await SendAsync(browser, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token); 431await SendAsync(browser, """{"type":"resync"}""", timeout.Token); 441await SendAsync(browser, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token); 445await SendAsync(browser, """{"type":"input","text":"allowed"}""", timeout.Token); 476await SendAsync(interactive, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token); 480await SendAsync(readOnly, """{"type":"requestPrimary","columns":120,"rows":40}""", timeout.Token); 481await SendAsync(readOnly, """{"type":"paste","text":"blocked"}""", timeout.Token); 482await SendAsync(readOnly, """{"type":"resync"}""", timeout.Token); 489await SendAsync(interactive, """{"type":"input","text":"x"}""", timeout.Token); 522await SendAsync(browser, command, timeout.Token); 682await SendAsync(socket, JsonSerializer.Serialize(new { type = "viewport", requestId, delta = -10000 }), cancellationToken); 688await SendAsync(socket, JsonSerializer.Serialize(new 702await SendAsync(socket, JsonSerializer.Serialize(new { type = "selection", action = "clear", requestId = requestId + 2 }), cancellationToken); 706await SendAsync(socket, JsonSerializer.Serialize(new { type = "viewport", live = true, requestId = requestId + 3 }), cancellationToken); 753await SendAsync(socket, $$"""{"type":"ack","revision":{{frame.GetProperty("revision").GetUInt32()}}}""", cancellationToken);