public async Task ClickDeploy() { await Create(); var navMock = new Mock <INavigationWindow>(); var dvm = new DeploymentCommandSource(Mock.Of <IHasPassword>(), sut); sut.Deploy((i, j) => dvm, navMock.Object, Mock.Of <IHasPassword>()); navMock.Verify(i => i.NavigateTo(It.IsAny <ConsoleWindowViewModel>()), Times.Once); }
public async Task ClickDeploy() { await Create(); var navMock = new Mock <INavigationWindow>(); var dvm = new DeploymentViewModel(navMock.Object, sut, Mock.Of <IHasPassword>()); sut.Deploy((i, j) => dvm, navMock.Object, Mock.Of <IHasPassword>()); navMock.Verify(i => i.NavigateTo(dvm), Times.Once); }