private async Task DoTests(bool auth, bool sec) { InitializeTest(auth, sec); // Publish basic EndpointConnected message and ensure receipt by listener EndpointConnected msg = new EndpointConnected() { CFXHandle = TestSettings.ClientHandle }; FireAndWait(msg); // Send Request/Reponse pattern command, and ensure response CFXEnvelope req = new CFXEnvelope(new AreYouThereRequest() { CFXHandle = listener.CFXHandle }); req.Source = endpoint.CFXHandle; req.Target = listener.CFXHandle; CFXEnvelope resp = endpoint.ExecuteRequest(listener.RequestUri.ToString(), req); Assert.IsTrue(resp != null, "Response is null"); Assert.IsTrue(resp.MessageBody is AreYouThereResponse, "Response is not AreYouThereReponse"); Assert.IsTrue(resp.Source == listener.CFXHandle, "Bad response Source handle"); Assert.IsTrue(resp.Target == endpoint.CFXHandle, "Bad response Target handle"); await RunAsyncRequest(); }
public static CFXMessage GetDefaultMessage() { EndpointConnected msg = new EndpointConnected() { CFXHandle = ClientHandle }; return(msg); }
private void DoTests(bool auth, bool sec, bool useAltHost = false) { InitializeTest(auth, sec, useAltHost); // Publish basic EndpointConnected message and ensure receipt by listener EndpointConnected msg = new EndpointConnected() { CFXHandle = TestSettings.ClientHandle }; FireAndWait(msg); }