NAnt2 / NDbUnit2

A revived .NET library for managing database state during unit testing, with roots in NDbUnit project
Apache License 2.0
1 stars 0 forks source link

XML Schemas are forced to have a tempuri.org namespace #20

Open savornicesei opened 6 years ago

savornicesei commented 6 years ago

Issue by spankr Friday Nov 25, 2016 at 17:41 GMT Originally opened as https://github.com/NDbUnit/NDbUnit/issues/63


When I construct an .xsd file, it does not like my namespace and insists on it containing "tempuri.org".

System.ArgumentException : The namespace in the file '' is invalid. Expected 'http://tempuri.org/MyDataSet.xsd' but was 'http://example.org/MyDataSet.xsd'

Digging reveals that NDbUnit.Core.NDbUnitTest.SCHEMA_NAMESPACE_PREFIX is set to "http://tempuri.org/".

Normally, I would like to use the company url for the namespace, "http://fakecompany.com/Products" but I cannot do that nor use any potentially pre-existing schemas unless they have the Microsoft example prefix hard-coded into the namespace.

savornicesei commented 6 years ago

Related to #10