예제 #1
0
        public void ExecuteCommandImpl_ShouldReceivedGetConnectionInfoView()
        {
            // Arrange
            var view    = new ConnectionInfoView();
            var adapter = Substitute.For <ConnectionInfoViewAdapter>(view);

            dialogFactory.GetConnectionInfoView(projectManager, projectConfigurationManager).Returns(adapter);

            //Act
            сonnectionInfoCmd.ExecuteCommandImpl(null, null);

            // Assert
            dialogFactory.Received().GetConnectionInfoView(projectManager, projectConfigurationManager);
        }