Esempio n. 1
0
            public void CheckRequest_ShouldThrowWhenSchemaLanguageIsInvalid(string language)
            {
                var discovery = new Mock <Discovery>();
                var processor = new DescribeRecordProcessorAccessor(discovery.Object);

                var request = new DescribeRecord()
                {
                    schemaLanguage = (language != null ? new Uri(language) : null)
                };

                Assert.Throws <OwsException>(() => processor.CheckRequest(request));
            }
Esempio n. 2
0
            public void CheckRequest_ShouldThrowWhenOutputFormatIsInvalid(string format)
            {
                var discovery = new Mock <Discovery>();
                var processor = new DescribeRecordProcessorAccessor(discovery.Object);

                var request = new DescribeRecord()
                {
                    outputFormat = format
                };

                Assert.Throws <OwsException>(() => processor.CheckRequest(request));
            }
            public void CheckRequest_ShouldThrowWhenSchemaLanguageIsInvalid(string language)
            {
                var discovery=new Mock<Discovery>();
                var processor=new DescribeRecordProcessorAccessor(discovery.Object);

                var request=new DescribeRecord() {
                    schemaLanguage=(language!=null ? new Uri(language) : null)
                };

                Assert.Throws<OwsException>(() => processor.CheckRequest(request));
            }
            public void CheckRequest_ShouldThrowWhenOutputFormatIsInvalid(string format)
            {
                var discovery=new Mock<Discovery>();
                var processor=new DescribeRecordProcessorAccessor(discovery.Object);

                var request=new DescribeRecord()
                {
                    outputFormat=format
                };

                Assert.Throws<OwsException>(() => processor.CheckRequest(request));
            }