public PingEncodedResponse Ping(PingEncodedRequest request) { int requestIntValue; return(new PingEncodedResponse() { @Return = Int32.TryParse(request.Pinginfo, out requestIntValue) ? requestIntValue : -1 }); }
public static void TestCreateChannel() { RunWcfSoapServiceTest((serviceProxy) => { // *** EXECUTE *** \\ int intValue = 11; string intString = intValue.ToString(); var request = new PingEncodedRequest(intString); PingEncodedResponse response = serviceProxy.Ping(request); // *** VALIDATE *** \\ Assert.NotNull(response); Assert.Equal(intValue, response.@Return); }); }