-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #920 from DigDes/develop
v1.1.0.34
- Loading branch information
Showing
14 changed files
with
496 additions
and
352 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
49 changes: 49 additions & 0 deletions
49
src/SoapCore.Tests/Wsdl/Services/DefaultValuesAttributesService.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,49 @@ | ||
using System.ComponentModel; | ||
using System.ServiceModel; | ||
|
||
namespace SoapCore.Tests.Wsdl.Services | ||
{ | ||
#pragma warning disable SA1649 // File name should match first type name | ||
#pragma warning disable SA1402 // File may only contain a single type | ||
[ServiceContract(Namespace = "http://bagov.net")] | ||
public interface IDefaultValueAttributesService | ||
{ | ||
[OperationContract] | ||
DefaultValueAttributesResponseType GetResponse(); | ||
} | ||
|
||
public class DefaultValueAttributesService : IDefaultValueAttributesService | ||
{ | ||
public DefaultValueAttributesResponseType GetResponse() | ||
{ | ||
return new DefaultValueAttributesResponseType(); | ||
} | ||
} | ||
|
||
public class DefaultValueAttributesResponseType | ||
{ | ||
public bool BooleanWithNoDefaultProperty { get; set; } | ||
|
||
[DefaultValue(null)] | ||
public bool BooleanWithDefaultNullProperty { get; set; } | ||
|
||
[DefaultValue(false)] | ||
public bool BooleanWithDefaultFalseProperty { get; set; } | ||
|
||
[DefaultValue(true)] | ||
public string BooleanWithDefaultTrueProperty { get; set; } | ||
|
||
public int IntWithNoDefaultProperty { get; set; } | ||
|
||
[DefaultValue(42)] | ||
public int IntWithDefaultProperty { get; set; } | ||
|
||
public string StringWithNoDefaultProperty { get; set; } | ||
|
||
[DefaultValue(null)] | ||
public string StringWithDefaultNullProperty { get; set; } | ||
|
||
[DefaultValue("default")] | ||
public string StringWithDefaultProperty { get; set; } | ||
} | ||
} |
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
Oops, something went wrong.