示例#1
0
        public void Test_WithSingleResponse_Works()
        {
            jsonRpcCallContext.WithSingle(new UntypedRequest());
            var response = new UntypedResponse();

            Action action = () => jsonRpcCallContext.WithSingleResponse(response);

            action.Should().NotThrow();
            jsonRpcCallContext.SingleResponse.Should().Be(response);
        }
        public void Test_FormattedResponse_HasDefaultVersion()
        {
            var value = new UntypedResponse();

            value.Jsonrpc.Should().Be(JsonRpcConstants.Version);
        }