public void VerifyThatInstantiatePanelViewModelReturnsExpectedViewModel()
        {
            var viewmodel = ReportDesignerRibbonViewModel.InstantiatePanelViewModel(
                this.iteration,
                this.session.Object,
                this.thingDialogNavigationService.Object,
                this.panelNavigationService.Object,
                this.dialogNavigationService.Object,
                this.pluginSettingsService.Object);

            Assert.IsInstanceOf <ReportDesignerViewModel>(viewmodel);
        }
        public void VerifyThatInstantiatePanelViewModelNotReturnsExpectedViewModelWhenModelIsNull()
        {
            this.iteration.Container = null;

            Assert.Throws <InvalidOperationException>(() =>
                                                      ReportDesignerRibbonViewModel.InstantiatePanelViewModel(
                                                          this.iteration,
                                                          this.session.Object,
                                                          this.thingDialogNavigationService.Object,
                                                          this.panelNavigationService.Object,
                                                          this.dialogNavigationService.Object,
                                                          this.pluginSettingsService.Object));
        }
        public void VerifyThatInstantiatePanelViewModelNotReturnsExpectedViewModelWhenActiveParticipantIsNull()
        {
            (this.iteration.Container as EngineeringModel).EngineeringModelSetup.Participant.Clear();

            Assert.Throws <InvalidOperationException>(() =>
                                                      ReportDesignerRibbonViewModel.InstantiatePanelViewModel(
                                                          this.iteration,
                                                          this.session.Object,
                                                          this.thingDialogNavigationService.Object,
                                                          this.panelNavigationService.Object,
                                                          this.dialogNavigationService.Object,
                                                          this.pluginSettingsService.Object));
        }