Skip to content

Commit

Permalink
Test MemborVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
flcdrg committed Apr 5, 2017
1 parent 5d781fd commit 5fbae58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions XmlSchemaClassGenerator.Tests/XmlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private Assembly Compile(string name, string pattern, Generator generatorPrototy
GenerateDesignerCategoryAttribute = false,
EntityFramework = false,
GenerateInterfaces = true,
NamespacePrefix = name,
NamespacePrefix = name
};

var gen = new Generator
Expand All @@ -52,7 +52,8 @@ private Assembly Compile(string name, string pattern, Generator generatorPrototy
DataAnnotationMode = generatorPrototype.DataAnnotationMode,
GenerateDesignerCategoryAttribute = generatorPrototype.GenerateDesignerCategoryAttribute,
EntityFramework = generatorPrototype.EntityFramework,
GenerateInterfaces = generatorPrototype.GenerateInterfaces
GenerateInterfaces = generatorPrototype.GenerateInterfaces,
MemberVisitor = generatorPrototype.MemberVisitor
};

var files = Glob.Glob.ExpandNames(pattern);
Expand Down Expand Up @@ -103,7 +104,8 @@ public void CanDeserializeSampleXml()
{
EntityFramework = true,
DataAnnotationMode = DataAnnotationMode.All,
NamespaceProvider = new Dictionary<NamespaceKey, string> { { new NamespaceKey("http://wadl.dev.java.net/2009/02"), "Wadl" } }.ToNamespaceProvider(new GeneratorConfiguration { NamespacePrefix = "Wadl" }.NamespaceProvider.GenerateNamespace)
NamespaceProvider = new Dictionary<NamespaceKey, string> { { new NamespaceKey("http://wadl.dev.java.net/2009/02"), "Wadl" } }.ToNamespaceProvider(new GeneratorConfiguration { NamespacePrefix = "Wadl" }.NamespaceProvider.GenerateNamespace),
MemberVisitor = (member, model) => { }
});
TestSamples("Wadl", WadlPattern);
Compile("IS24ImmoTransfer", IS24ImmoTransferPattern);
Expand Down

0 comments on commit 5fbae58

Please sign in to comment.