diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-31 14:15:49 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-31 14:15:49 +0200 |
| commit | 650af0554b902837f8e146d690aca24e4f60ec29 (patch) | |
| tree | 30f3795d9579129395fd987c3e790ce33181c0e5 /Software/Visual_Studio/Utilities | |
| parent | cfe28eaf0adcd54776c0a369210e6f7b4bca9558 (diff) | |
| download | Tango-650af0554b902837f8e146d690aca24e4f60ec29.tar.gz Tango-650af0554b902837f8e146d690aca24e4f60ec29.zip | |
Removed Default configuration from machine version.
Implemented custom ToJson for observables.
Implemented Apply & Create prototype machine for machine version.
Diffstat (limited to 'Software/Visual_Studio/Utilities')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs index 0ff703178..673136df9 100644 --- a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs +++ b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs @@ -15,7 +15,9 @@ using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Tango.BL; +using Tango.BL.Builders; using Tango.BL.Catalogs; +using Tango.BL.Entities; using Tango.Core; using Tango.Core.Commands; using Tango.DragAndDrop; @@ -30,9 +32,25 @@ namespace Tango.UITests { public MainWindow() { + + Start(); InitializeComponent(); } + private async void Start() + { + using (ObservablesContext db = ObservablesContext.CreateDefault()) + { + var machine = new MachineBuilder(db).Set(x => x.SerialNumber == "1111").WithConfiguration().WithOrganization().WithJobs().WithSpools().WithCats().Build(); + MachineVersion version = db.MachineVersions.First(); + await version.ApplyPrototypeMachine(machine, db); + + Machine m = await version.CreatePrototypeMachine(db); + } + } + + + public String CurrentPath { get { return (String)GetValue(CurrentPathProperty); } |
