예제 #1
0
        public void VerifyThatOkCanExecuteIsUpdatedCorrectly()
        {
            var vm = new DerivedUnitDialogViewModel(this.derivedUnit, this.transaction, this.session.Object, true,
                                                    ThingDialogKind.Create, this.navigation.Object);

            // check false if container does not contain unit
            vm.Container = new SiteReferenceDataLibrary();
            Assert.IsFalse(vm.OkCommand.CanExecute(null));

            // check true
            vm.Container = this.siteRdl;
            Assert.IsTrue(vm.OkCommand.CanExecute(null));
        }
예제 #2
0
        public void VerifyThatParameterlessContructorExists()
        {
            var dialogViewModel = new DerivedUnitDialogViewModel();

            Assert.IsFalse(dialogViewModel.IsDeprecated);
        }