aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.UITests
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-01-05 22:35:03 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-01-05 22:35:03 +0200
commita7137c1f053ba48c3ce22bee483fe7f716cc90cb (patch)
tree743a606cb586a2b59585ea205e10551587846f06 /Software/Visual_Studio/Utilities/Tango.UITests
parent97ae338e0413613ee5a0d135f8226ee42ba4aa06 (diff)
downloadTango-a7137c1f053ba48c3ce22bee483fe7f716cc90cb.tar.gz
Tango-a7137c1f053ba48c3ce22bee483fe7f716cc90cb.zip
Working on entities serialization.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.UITests')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
index 0352bcb82..e7db48435 100644
--- a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
@@ -38,8 +38,20 @@ namespace Tango.UITests
public MainWindow()
{
+
+ Start();
InitializeComponent();
- this.ContentRendered += MainWindow_ContentRendered;
+ //this.ContentRendered += MainWindow_ContentRendered;
+ }
+
+ private async void Start()
+ {
+ using (var db = ObservablesContext.CreateDefault())
+ {
+ MachineVersion version = db.MachineVersions.FirstOrDefault();
+ var machine = db.Machines.SingleOrDefault(x => x.SerialNumber == "1111");
+ await version.ApplyPrototypeMachine(machine, db);
+ }
}
private void MainWindow_ContentRendered(object sender, EventArgs e)