Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }