コード例 #1
0
ファイル: TestService.cs プロジェクト: vrestihnat/SoapCore
 public void OutComplexParam(out ComplexModelInput test)
 {
     test = new ComplexModelInput();
     test.StringProperty = "test message";
     test.IntProperty    = 10;
     test.ListProperty   = new List <string> {
         "test", "list", "of", "strings"
     };
 }
コード例 #2
0
ファイル: TestService.cs プロジェクト: xumix/SoapCore
        public object ObjectFromServiceKnownType(ComplexModelInput value)
        {
            if (value is null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            return(value);
        }
コード例 #3
0
        public void ComplexModelInputFromServiceKnownType()
        {
            var client = CreateClient();
            var input  = new ComplexModelInput
            {
                IntProperty    = 123,
                StringProperty = "Test string",
            };
            var output = client.ComplexModelInputFromServiceKnownType(input);

            Assert.AreEqual(input.IntProperty, output.IntProperty);
            Assert.AreEqual(input.StringProperty, output.StringProperty);
        }
コード例 #4
0
        public void ObjectFromServiceKnownType()
        {
            var client = CreateClient();
            var input  = new ComplexModelInput
            {
                IntProperty    = 123,
                StringProperty = "Test string",
            };
            var output = client.ObjectFromServiceKnownType(input);

            Assert.IsInstanceOfType(output, typeof(ComplexModelInput));
            Assert.AreEqual(input.IntProperty, ((ComplexModelInput)output).IntProperty);
            Assert.AreEqual(input.StringProperty, ((ComplexModelInput)output).StringProperty);
        }
コード例 #5
0
ファイル: TestService.cs プロジェクト: vrestihnat/SoapCore
 public ComplexModelInput ComplexParamWithActionFilter(ComplexModelInput test)
 {
     return(test);
 }
コード例 #6
0
ファイル: TestService.cs プロジェクト: vrestihnat/SoapCore
 public ComplexModelInput ComplexParam(ComplexModelInput test)
 {
     return(test);
 }
コード例 #7
0
ファイル: TestService.cs プロジェクト: tqangxl/SoapCore
 public void OutComplexParam(out ComplexModelInput test)
 {
     test = new ComplexModelInput();
     test.StringProperty = "test message";
     test.IntProperty    = 10;
 }