-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
213 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
:major: 1 | ||
:minor: 2 | ||
:patch: 2 | ||
:patch: 3 | ||
:special: '' |
19 changes: 19 additions & 0 deletions
19
source/WcfClientProxyGenerator.Tests/Infrastructure/IOutParamTestService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
using System.ServiceModel; | ||
|
||
namespace WcfClientProxyGenerator.Tests.Infrastructure | ||
{ | ||
[ServiceContract] | ||
public interface IOutParamTestService | ||
{ | ||
[OperationContract] | ||
int SingleOutParam(out byte[] output); | ||
|
||
[OperationContract] | ||
int MultipleOutParams(out byte[] out1, out string out2); | ||
|
||
[OperationContract] | ||
int MixedParams(int inp1, out int out1, string inp2); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
source/WcfClientProxyGenerator.Tests/Infrastructure/OutParamTestServiceImpl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using Moq; | ||
|
||
namespace WcfClientProxyGenerator.Tests.Infrastructure | ||
{ | ||
public class OutParamTestServiceImpl : IOutParamTestService | ||
{ | ||
private readonly Mock<IOutParamTestService> _mock; | ||
|
||
public OutParamTestServiceImpl() | ||
{} | ||
|
||
public OutParamTestServiceImpl(Mock<IOutParamTestService> mock) | ||
{ | ||
_mock = mock; | ||
} | ||
|
||
public int SingleOutParam(out byte[] out1) | ||
{ | ||
if (_mock != null) | ||
return _mock.Object.SingleOutParam(out out1); | ||
|
||
out1 = new byte[] { 0x00, 0x01 }; | ||
return 1; | ||
} | ||
|
||
public int MultipleOutParams(out byte[] out1, out string out2) | ||
{ | ||
if (_mock != null) | ||
return _mock.Object.MultipleOutParams(out out1, out out2); | ||
|
||
out1 = new byte[] { 0x00, 0x01 }; | ||
out2 = "message"; | ||
return 1; | ||
} | ||
|
||
public int MixedParams(int inp1, out int out1, string inp2) | ||
{ | ||
if (_mock != null) | ||
return _mock.Object.MixedParams(inp1, out out1, inp2); | ||
|
||
out1 = 24; | ||
return 1; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters