-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #19 boolean arguments are not managed properly
- Loading branch information
1 parent
71686a8
commit 1c95626
Showing
7 changed files
with
74 additions
and
9 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
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
15 changes: 15 additions & 0 deletions
15
tests/InterAppConnector.Test.Library/Commands/BooleanCommand.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,15 @@ | ||
using InterAppConnector.Attributes; | ||
using InterAppConnector.Interfaces; | ||
using InterAppConnector.Test.Library.DataModels; | ||
|
||
namespace InterAppConnector.Test.Library.Commands | ||
{ | ||
[Command("booleancommand")] | ||
public class BooleanCommand : ICommand<DataModelWithBoolean> | ||
{ | ||
public string Main(DataModelWithBoolean arguments) | ||
{ | ||
return CommandOutput.Ok(arguments); | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/InterAppConnector.Test.Library/DataModels/DataModelWithBoolean.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,8 @@ | ||
namespace InterAppConnector.Test.Library.DataModels | ||
{ | ||
public class DataModelWithBoolean | ||
{ | ||
public bool MandatorySwitch { get; set; } | ||
public int Number { 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