Exemplo n.º 1
0
        public async Task AsyncUnaryMethod_Success()
        {
            var actualResponse = await _sourceClient.Method1Async(new ForwardingSourceMethod1Request { SourceName = "abc" });

            var expectedResponse = new ForwardingSourceMethod1Response
            {
                SourceRequestName = "abc",
                TargetResult      = "yy:target:xx:abc"
            };

            Assert.Equal(expectedResponse, actualResponse);
        }
Exemplo n.º 2
0
        public void BlockingUnaryMethod_Success()
        {
            var actualResponse = _sourceClient.Method1(new ForwardingSourceMethod1Request {
                SourceName = "abc"
            });
            var expectedResponse = new ForwardingSourceMethod1Response
            {
                SourceRequestName = "abc",
                TargetResult      = "yy:target:xx:abc"
            };

            Assert.Equal(expectedResponse, actualResponse);
        }