Example #1
0
        public void VerifyThatPropertiesAreSet()
        {
            var iterationSetup = new IterationSetup();

            var vm = new IterationSetupDialogViewModel(iterationSetup, this.transaction, this.session.Object, true,
                                                       ThingDialogKind.Create, this.navigation.Object, this.clone);

            Assert.AreEqual(1, vm.PossibleSourceIterationSetupRow.Count);
            Assert.IsNull(vm.NullableCreatedOn);
            Assert.IsNull(vm.NullableIterationNumber);
        }
Example #2
0
        public async Task VerifyThatOkCommandWorksWhenRoot()
        {
            var iterationSetup = new IterationSetup();

            var vm = new IterationSetupDialogViewModel(iterationSetup, this.transaction, this.session.Object, true,
                                                       ThingDialogKind.Create, this.navigation.Object, this.clone);

            vm.OkCommand.Execute(null);
            Assert.IsNotNull(iterationSetup.SourceIterationSetup);
            this.session.Verify(x => x.Write(It.IsAny <OperationContainer>()));
            Assert.IsTrue(vm.DialogResult.Value);
        }
Example #3
0
        public void VerifyThatDefaultConstructorDoesNotThrowException()
        {
            var dialog = new IterationSetupDialogViewModel();

            Assert.IsNotNull(dialog);
        }