public void TerminalStatusRequest_OnValidRequest_ReturnObjects() { // act var request = new TerminalStatusRequest(); var msg = request.ToMessage(); // assert Assert.Equal("get_terminal_status", msg.EventName); }
public async void Run_TerminalStatusTest() { ShowTestOnTerminal("TerminalStatus"); TerminalStatusRequest request = new TerminalStatusRequest { TerminalName = IntegrationTestConfiguration.Instance.Settings.DefaultTerminalName, }; output.WriteLine("Request: {0}", request); TerminalStatusResponse response = await blockchyp.TerminalStatusAsync(request); output.WriteLine("Response: {0}", response); Assert.True(response.Success, "response.Success"); Assert.True(response.Idle, "response.Idle"); }