public void VerifyThatNavigateIsInvokedOnInspectOwner() { var clone = this.ruleVerificationList.Clone(false); var dialog = new UserRuleVerificationDialogViewModel(this.userRuleVerification, this.thingTransaction, this.session.Object, true, ThingDialogKind.Inspect, this.thingDialogNavigationService.Object, clone, null); dialog.InspectOwnerCommand.Execute(null); this.thingDialogNavigationService.Verify(x => x.Navigate(It.IsAny <DomainOfExpertise>(), null, this.session.Object, false, ThingDialogKind.Inspect, this.thingDialogNavigationService.Object, null, null)); }
public void VerifyThatPropertiesAreSet() { var clone = this.ruleVerificationList.Clone(false); this.userRuleVerification.IsActive = true; var dialog = new UserRuleVerificationDialogViewModel(this.userRuleVerification, this.thingTransaction, this.session.Object, true, ThingDialogKind.Inspect, this.thingDialogNavigationService.Object, clone, null); CollectionAssert.Contains(dialog.PossibleRule, this.decompositionRule); CollectionAssert.Contains(dialog.PossibleRule, this.binaryRelationshipRule); Assert.AreEqual("System [SYS]", dialog.Owner); Assert.IsTrue(dialog.IsActive); Assert.AreEqual(this.binaryRelationshipRule, dialog.SelectedRule); }
public void VerifyThatDefaultConstructorIsAvailable() { var dialog = new UserRuleVerificationDialogViewModel(); Assert.IsNotNull(dialog); }