public void GetQueueServiceProperties_HasCorsRule_ReturnsRule()
        {
            IQueueServiceClient client = new QueueServiceClient(_accountSettings);
            var sampleCors = _util.AddSampleToCors();

            var response = client.GetQueueServiceProperties();

            //TODO come back and do better assertions
            Assert.AreEqual(1, response.Properties.Cors.Count);
            Assert.AreEqual(sampleCors.AllowedHeaders.Count, response.Properties.Cors[0].AllowedHeaders.Count);
            //Assert.AreEqual(sampleCors.AllowedMethods.Count, response.Properties.Cors[0].AllowedMethods.Count);
            Assert.AreEqual(sampleCors.AllowedOrigins.Count, response.Properties.Cors[0].AllowedOrigins.Count);
            Assert.AreEqual(sampleCors.ExposedHeaders.Count, response.Properties.Cors[0].ExposedHeaders.Count);
            Assert.AreEqual(sampleCors.MaxAgeInSeconds, response.Properties.Cors[0].MaxAgeInSeconds);
        }
        public void GetQueueServiceProperties_EverythingDisabled_RetrievesPropertiesSuccessfully()
        {
            IQueueServiceClient client = new QueueServiceClient(_accountSettings);
            _util.SetServicePropertiesOff();

            var response = client.GetQueueServiceProperties();

            Assert.IsFalse(response.Properties.Logging.Delete);
            Assert.IsFalse(response.Properties.Logging.Read);
            Assert.IsFalse(response.Properties.Logging.Write);
            Assert.IsFalse(response.Properties.Logging.RetentionPolicyEnabled);
            Assert.IsFalse(response.Properties.HourMetrics.Enabled);
            Assert.IsFalse(response.Properties.HourMetrics.IncludeAPIs);
            Assert.IsFalse(response.Properties.HourMetrics.RetentionPolicyEnabled);
            Assert.IsFalse(response.Properties.MinuteMetrics.Enabled);
            Assert.IsFalse(response.Properties.MinuteMetrics.IncludeAPIs);
            Assert.IsFalse(response.Properties.MinuteMetrics.RetentionPolicyEnabled);
        }