GetPublishConfiguration() public method

public GetPublishConfiguration ( string configurationName, string publishLocation, string apiKey ) : PublishConfiguration
configurationName string
publishLocation string
apiKey string
return PublishConfiguration
        public void GetPublishConfiguration_ParameterAreValid_ResultContainsParametersAsTheyWerePassedIn(string publishLocation, string configurationName, string apiKey)
        {
            // Arrange
            var publishConfigurationFactory = new PublishConfigurationFactory();

            // Act
            var result = publishConfigurationFactory.GetPublishConfiguration(configurationName, publishLocation, apiKey);

            // Assert
            Assert.AreEqual(publishLocation, result.PublishLocation);
            Assert.AreEqual(configurationName, result.Name);
            Assert.AreEqual(apiKey, result.ApiKey);
        }
        public void GetPublishConfiguration_PublishLocationParameterIsInvalid_ResultIsNull(string publishLocation)
        {
            // Arrange
            string configurationName = "Nuget.org";
            string apiKey = null;

            var publishConfigurationFactory = new PublishConfigurationFactory();

            // Act
            var result = publishConfigurationFactory.GetPublishConfiguration(configurationName, publishLocation, apiKey);

            // Assert
            Assert.IsNull(result);
        }
        public void GetPublishConfiguration_ParameterAreValid_ResultIsNotNull(string apiKey)
        {
            // Arrange
            string publishLocation = "Nuget.org";
            string configurationName = "http://nuget.org/api/v2";

            var publishConfigurationFactory = new PublishConfigurationFactory();

            // Act
            var result = publishConfigurationFactory.GetPublishConfiguration(configurationName, publishLocation, apiKey);

            // Assert
            Assert.IsNotNull(result);
        }