ExecuteCmdlet() публичный Метод

public ExecuteCmdlet ( ) : void
Результат void
        public void TestProfileDomainNameReturnsFalse()
        {
            // Setup
            clientMock.Setup(c => c.TestDomainAvailability(ProfileDomainName)).Returns(false);
            cmdlet = new TestAzureTrafficManagerDomainName
                {
                    DomainName = ProfileDomainName,
                    CommandRuntime = mockCommandRuntime.Object,
                    TrafficManagerClient = clientMock.Object
                };

            // Action
            cmdlet.ExecuteCmdlet();

            // Assert
            clientMock.Verify(c => c.TestDomainAvailability(ProfileDomainName), Times.Once());
            mockCommandRuntime.Verify(c => c.WriteObject(false), Times.Once());
        }
        public void TestProfileDomainNameAppendsTrafficManagerSuffixTrue()
        {
            // Setup
            clientMock.Setup(c => c.TestDomainAvailability(NakedProfileDomainName)).Returns(true);
            cmdlet = new TestAzureTrafficManagerDomainName
            {
                DomainName = NakedProfileDomainName,
                CommandRuntime = mockCommandRuntime.Object,
                TrafficManagerClient = clientMock.Object
            };

            // Action
            cmdlet.ExecuteCmdlet();

            // Assert
            clientMock.Verify(c => c.TestDomainAvailability(ProfileDomainName), Times.Once());
        }