public void ReadLogsTest()
        {
            using (var ds = new CruiseDAL.DAL(readTestFile))
            {
                var wp            = Mock.Of <WindowPresenter>();
                var appController = Mock.Of <ApplicationControllerBase>();
                var target        = new DataEditorView(wp, appController);

                var cu = new CuttingUnitDO()
                {
                    rowID = 1
                };
                var st = new StratumDO()
                {
                    rowID = 1
                };
                var sg = new SampleGroupDO()
                {
                    rowID = 1
                };
                var tdv = new TreeDefaultValueDO()
                {
                    rowID = 1
                };

                var logs = target.ReadLogs(cu, st, sg, tdv, false);

                logs.Should().NotBeNullOrEmpty();
            }
        }
Exemplo n.º 2
0
 public override void ShowDataEditor()
 {
     ApplicationController.Save();
     using (DataEditorView view = new DataEditorView(this, this.ApplicationController))
     {
         view.ShowDialog((IWin32Window)this.ApplicationController.MainWindow);
     }
 }
        public void ReadPlotsTest()
        {
            using (var ds = new CruiseDAL.DAL(readTestFile))
            {
                var wp            = Mock.Of <WindowPresenter>();
                var appController = Mock.Of <ApplicationControllerBase>();
                var target        = new DataEditorView(wp, appController);

                var cu = new CuttingUnitDO()
                {
                    rowID = 1
                };
                var st = new StratumDO()
                {
                    rowID = 1
                };

                var plots = target.ReadPlots(cu, st, false);

                plots.Should().NotBeNullOrEmpty();
            }
        }