Beispiel #1
0
        private XmlSerializerImportOptions PerformBuild(CodeGeneratorOptions codeGeneratorOptions)
        {
            ICodeGeneratorContext codeGeneratorContext = new CodeGeneratorContext(metadataSet, codeGeneratorOptions);
            IXmlSerializerImportOptionsBuilder builder = new XmlSerializerImportOptionsBuilder();

            return(builder.Build(codeGeneratorContext));
        }
Beispiel #2
0
        public void Build_CodeGeneratorContext_CodeCompileUnit()
        {
            ICodeGeneratorContext codeGeneratorContext       = new CodeGeneratorContext(metadataSet, new CodeGeneratorOptions());
            IXmlSerializerImportOptionsBuilder builder       = new XmlSerializerImportOptionsBuilder();
            XmlSerializerImportOptions         importOptions = builder.Build(codeGeneratorContext);

            Assert.That(importOptions.CodeCompileUnit, Is.EqualTo(codeGeneratorContext.CodeCompileUnit));
        }
		public void Build_CodeGeneratorContext_CodeCompileUnit()
		{
			ICodeGeneratorContext codeGeneratorContext = new CodeGeneratorContext(metadataSet, new CodeGeneratorOptions());
			IXmlSerializerImportOptionsBuilder builder = new XmlSerializerImportOptionsBuilder();
			XmlSerializerImportOptions importOptions = builder.Build(codeGeneratorContext);

			Assert.That(importOptions.CodeCompileUnit, Is.EqualTo(codeGeneratorContext.CodeCompileUnit));
		}
		private XmlSerializerImportOptions PerformBuild(CodeGeneratorOptions codeGeneratorOptions)
		{
			ICodeGeneratorContext codeGeneratorContext = new CodeGeneratorContext(metadataSet, codeGeneratorOptions);
			IXmlSerializerImportOptionsBuilder builder = new XmlSerializerImportOptionsBuilder();
			return builder.Build(codeGeneratorContext);
		}