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); }
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); }
public void VerifyThatDefaultConstructorDoesNotThrowException() { var dialog = new IterationSetupDialogViewModel(); Assert.IsNotNull(dialog); }