diff --git a/src/Spring/Spring.Data/Data/Common/dbproviders.xml b/src/Spring/Spring.Data/Data/Common/dbproviders.xml
index 38db1e91..36e66dc1 100644
--- a/src/Spring/Spring.Data/Data/Common/dbproviders.xml
+++ b/src/Spring/Spring.Data/Data/Common/dbproviders.xml
@@ -30,7 +30,7 @@
- 156,170,207,208
+ 102,156,170,207,208
229
@@ -71,7 +71,7 @@
- 156,170,207,208
+ 102,156,170,207,208
229
@@ -112,7 +112,7 @@
- 156,170,207,208
+ 102,156,170,207,208
229
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs b/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs
index c882a6fd..cdf1fce8 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs
@@ -56,7 +56,7 @@ namespace Spring.Data
}
- [Ignore]
+ [Ignore("Sanity-Check tests intended for verification of base-class behavior only")]
[Test]
public void SimpleCreate()
{
@@ -68,7 +68,7 @@ namespace Spring.Data
dao.Create("John", 44);
}
- [Ignore]
+ [Ignore("Sanity-Check tests intended for verification of base-class behavior only")]
[Test]
public void SimpleDao()
{
@@ -87,7 +87,7 @@ namespace Spring.Data
}
- [Ignore]
+ [Ignore("Sanity-Check tests intended for verification of base-class behavior only")]
[Test]
public void SimpleDao2()
{
@@ -99,7 +99,7 @@ namespace Spring.Data
Assert.AreEqual(1, dao.GetCountByDelegate());
}
- [Ignore]
+ [Ignore("Sanity-Check tests intended for verification of base-class behavior only")]
[Test]
public void DaoOperations()
{
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/DTC1.1AppContext.xml b/test/Spring/Spring.Data.Integration.Tests/Data/DTC1.1AppContext.xml
index ea5eb9aa..0e5c4140 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/DTC1.1AppContext.xml
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/DTC1.1AppContext.xml
@@ -9,13 +9,13 @@
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContext.xml b/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContext.xml
index 14554243..a9af1df9 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContext.xml
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContext.xml
@@ -11,16 +11,16 @@
+ connectionString="Data Source=SPRINGQA;Initial Catalog=Debits;Persist Security Info=True;User ID=springqa;Password=springqa"/>
+ connectionString="Data Source=SPRINGQA;Initial Catalog=Credits;Persist Security Info=True;User ID=springqa;Password=springqa"/>
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContextNoInterfaces.xml b/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContextNoInterfaces.xml
index 5fd2c76c..e6bb7419 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContextNoInterfaces.xml
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContextNoInterfaces.xml
@@ -6,11 +6,11 @@
+ connectionString="Data Source=SPRINGQA;Initial Catalog=Credits;Integrated Security=false;User Id=springqa;Password=springqa;Pooling=False"/>
-
+ connectionString="Data Source=SPRINGQA;Initial Catalog=Debits;Integrated Security=false;User Id=springqa;Password=springqa;Pooling=False"/>
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.cs b/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.cs
index 1c6a8ec7..20481a3e 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.cs
@@ -44,41 +44,63 @@ namespace Spring.Data.Generic
"assembly://Spring.Data.Integration.Tests/Spring.Data.Generic/GenericAdoTemplateTests.xml");
adoTemplate = ctx["adoTemplate"] as AdoTemplate;
+
+ RemoveTestData();
+ PopulateTestData();
}
+ private void PopulateTestData()
+ {
+ adoTemplate.ExecuteScalar(CommandType.Text, "insert into TestObjects values (10, 'Jack')");
+ adoTemplate.ExecuteScalar(CommandType.Text, "insert into TestObjects values (20, 'Jill')");
+ }
+
+ [TearDown]
+ public void TearDown()
+ {
+ RemoveTestData();
+ }
+
+ private void RemoveTestData()
+ {
+ adoTemplate.ExecuteNonQuery(CommandType.Text, "delete TestObjects");
+ }
+
+
[Test]
public void CommandDelegateUsage()
{
- string postalCode = "1010";
+ string name = "Jack";
int count = adoTemplate.Execute(delegate(DbCommand command)
{
command.CommandText =
- "select count(*) from Customers where PostalCode = @PostalCode";
+ "select count(*) from TestObjects where Name = @Name";
DbParameter p = command.CreateParameter();
- p.ParameterName = "@PostalCode";
- p.Value = postalCode;
+ p.ParameterName = "@Name";
+ p.Value = name;
command.Parameters.Add(p);
return (int) command.ExecuteScalar();
});
- Assert.AreEqual(3, count);
+ Assert.AreEqual(1, count);
}
+ [Test]
public void CommandDelegateUsageDownCast()
{
- string postalCode = "1010";
+ string name = "Jack";
int count = adoTemplate.Execute(delegate(DbCommand command)
{
SqlCommand sqlCommand = command as SqlCommand;
command.CommandText =
- "select count(*) from Customers where PostalCode = @PostalCode";
+ "select count(*) from TestObjects where Name = @Name";
- sqlCommand.Parameters.AddWithValue("@PostalCode", postalCode);
+ sqlCommand.Parameters.AddWithValue("@Name", name);
return (int) command.ExecuteScalar();
});
- Assert.AreEqual(3, count);
+ Assert.AreEqual(1, count);
}
[Test]
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.xml b/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.xml
index 852a0163..fce7fffd 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.xml
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/Generic/GenericAdoTemplateTests.xml
@@ -4,7 +4,7 @@
+ connectionString="Data Source=SPRINGQA;Database=Spring;User ID=springqa;Password=springqa;Trusted_Connection=False"/>