aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-03-08 16:56:05 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-03-08 16:56:05 +0200
commit860c4f663dfdd2ba7676d7e02bf0509b30389cd5 (patch)
treec3e529d1c18edcdb0ee5a3c147d4fc273d294f50 /Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs
parentef563b18e8afc5a30beed830f1615c4277021225 (diff)
downloadTango-860c4f663dfdd2ba7676d7e02bf0509b30389cd5.tar.gz
Tango-860c4f663dfdd2ba7676d7e02bf0509b30389cd5.zip
Stubs UI improvements !
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs b/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs
index 68b249a8a..2a721184b 100644
--- a/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs
+++ b/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Resources/CodeTabTemplate.cs
@@ -7,14 +7,19 @@ using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
+using Tango.PMR.Stubs;
using Tango.Stubs.UI;
public void OnExecute(StubManager stubManager)
{
for (int i = 0; i < 10; i++)
{
- stubManager.Run("calculate", 10, 5);
- Thread.Sleep(10);
+ var response = stubManager.Run<CalculateResponse>("calculate", 10, 5);
+
+ if (response.Sum == 15)
+ {
+ stubManager.WriteLine("OK!");
+ }
}
}