public void GetIngresses_WhenAllLinesAreValid_ShouldReturnExpectedValidResponses()
        {
            _mockShell.Setup(mock => mock.Execute(Kubectl, GetIngress)).Returns(ExampleResponse);
            var cluster = new KubernetesCluster(_mockShell.Object);

            var responses = cluster.GetIngresses();

            Assert.Equal(3, responses.Count());
        }
        public void GetIngresses_WithInvalidLineInData_ShouldReturnExpectedValidResponses()
        {
            _mockShell.Setup(mock => mock.Execute(Kubectl, GetIngress)).Returns(BadExampleResponse);
            var cluster = new KubernetesCluster(_mockShell.Object);

            var responses = cluster.GetIngresses();

            Assert.Equal(2, responses.Count());
        }
        public void GetIngresses_ShouldExecuteKubectlCommand()
        {
            _mockShell.Setup(mock => mock.Execute(Kubectl, GetIngress)).Returns("");
            var cluster = new KubernetesCluster(_mockShell.Object);

            cluster.GetIngresses();

            _mockShell.Verify(mock => mock.Execute(Kubectl, GetIngress), Times.Once);
        }