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

            Assert.IsInstanceOf <RelationshipEditorViewModel>(viewmodel);
        }
        public void VerifThatIfIterationNotContainedThenInvalidOperationExceptionIsThrown()
        {
            var unContainedIteration = new Iteration(Guid.NewGuid(), this.cache, this.uri)
            {
                IterationSetup = this.iterationsetup
            };

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