protected override void Arrange() { base.Arrange(); uiService = new Mock<IUIServiceWpf>(); uiService.Setup(x => x.ShowError(It.IsAny<Exception>(), It.IsAny<string>())) .Verifiable("ShowError not displayed."); command = new ExceptionThrowingCommandModel(uiService.Object); }
protected override void Arrange() { base.Arrange(); uiService = new Mock <IUIServiceWpf>(); uiService.Setup(x => x.ShowError(It.IsAny <Exception>(), It.IsAny <string>())) .Verifiable("ShowError not displayed."); command = new ExceptionThrowingCommandModel(uiService.Object); }