diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-01-05 22:35:03 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-01-05 22:35:03 +0200 |
| commit | a7137c1f053ba48c3ce22bee483fe7f716cc90cb (patch) | |
| tree | 743a606cb586a2b59585ea205e10551587846f06 /Software/Visual_Studio/Utilities/Tango.UITests | |
| parent | 97ae338e0413613ee5a0d135f8226ee42ba4aa06 (diff) | |
| download | Tango-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.cs | 14 |
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) |
