public void ValidateThrowsErrorsWithoutHeaderKey()
        {
            var processor = this.mocks.StrictMock<IConfigurationErrorProcesser>();
            var condition = new UrlHeaderValueTaskCondition
                {
                    Url = "http://somewhere"
                };
            Expect.Call(() => processor.ProcessError("Header Key cannot be empty"));

            this.mocks.ReplayAll();
            condition.Validate(null, ConfigurationTrace.Start(this), processor);

            this.mocks.VerifyAll();
        }
        public void ValidatePassesWithUrlAndHeaderKey()
        {
            var processor = this.mocks.StrictMock<IConfigurationErrorProcesser>();
            var condition = new UrlHeaderValueTaskCondition
                {
                    Url = "http://somewhere",
                    HeaderKey = "Key"
                };

            this.mocks.ReplayAll();
            condition.Validate(null, ConfigurationTrace.Start(this), processor);

            this.mocks.VerifyAll();
        }