Skip to content

Commit

Permalink
Merge branch 'bug/Unable_to_reference_connection_strings_in_setup_and…
Browse files Browse the repository at this point in the history
…_cleanup_tasks_(#110)'
  • Loading branch information
Cédric L. Charlier committed Aug 21, 2015
2 parents fae8582 + b2db5c7 commit 9d40ad5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
52 changes: 26 additions & 26 deletions NBi.Testing/Acceptance/RuntimeOverrider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,33 @@ public void SetupMethods()

//By Acceptance Test Suite (file) create a Test Case
[Test]
//[TestCase("AssemblyEqualToResultSet.nbits")]
//[TestCase("QueryEqualToWithParameter.nbits")]
//[TestCase("QueryEqualToCsv.nbits")]
//[TestCase("QueryEqualToQuery.nbits")]
//[TestCase("QueryEqualToResultSet.nbits")]
//[TestCase("QueryEqualToResultSetWithNull.nbits")]
//[TestCase("QueryWithReference.nbits")]
//[TestCase("Ordered.nbits")]
//[TestCase("Count.nbits")]
//[TestCase("Contain.nbits")]
//[TestCase("ContainStructure.nbits")]
//[TestCase("fasterThan.nbits")]
//[TestCase("SyntacticallyCorrect.nbits")]
//[TestCase("Exists.nbits")]
//[TestCase("LinkedTo.nbits")]
//[TestCase("SubsetOfStructure.nbits")]
//[TestCase("EquivalentToStructure.nbits")]
//[TestCase("SubsetOfMembers.nbits")]
//[TestCase("EquivalentToMembers.nbits")]
//[TestCase("MatchPatternMembers.nbits")]
//[TestCase("ResultSetMatchPattern.nbits")]
//[TestCase("QueryWithParameters.nbits")]
//[TestCase("EvaluateRows.nbits")]
//[TestCase("ReportEqualTo.nbits")]
[TestCase("AssemblyEqualToResultSet.nbits")]
[TestCase("QueryEqualToWithParameter.nbits")]
[TestCase("QueryEqualToCsv.nbits")]
[TestCase("QueryEqualToQuery.nbits")]
[TestCase("QueryEqualToResultSet.nbits")]
[TestCase("QueryEqualToResultSetWithNull.nbits")]
[TestCase("QueryWithReference.nbits")]
[TestCase("Ordered.nbits")]
[TestCase("Count.nbits")]
[TestCase("Contain.nbits")]
[TestCase("ContainStructure.nbits")]
[TestCase("fasterThan.nbits")]
[TestCase("SyntacticallyCorrect.nbits")]
[TestCase("Exists.nbits")]
[TestCase("LinkedTo.nbits")]
[TestCase("SubsetOfStructure.nbits")]
[TestCase("EquivalentToStructure.nbits")]
[TestCase("SubsetOfMembers.nbits")]
[TestCase("EquivalentToMembers.nbits")]
[TestCase("MatchPatternMembers.nbits")]
[TestCase("ResultSetMatchPattern.nbits")]
[TestCase("QueryWithParameters.nbits")]
[TestCase("EvaluateRows.nbits")]
[TestCase("ReportEqualTo.nbits")]
[TestCase("Etl.nbits")]
//[TestCase("Decoration.nbits")]
//[TestCase("QueryRowCount.nbits")]
[TestCase("Decoration.nbits")]
[TestCase("QueryRowCount.nbits")]
[Category("Acceptance")]
public void RunPositiveTestSuite(string filename)
{
Expand Down
2 changes: 2 additions & 0 deletions NBi.Xml/Decoration/Command/DataManipulationAbstractXml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public string ConnectionString
{
get
{
if (!string.IsNullOrEmpty(SpecificConnectionString) && SpecificConnectionString.StartsWith("@"))
return Settings.GetReference(SpecificConnectionString.Remove(0, 1)).ConnectionString;
if (!String.IsNullOrWhiteSpace(SpecificConnectionString))
return SpecificConnectionString;
if (Settings != null && Settings.GetDefault(SettingsXml.DefaultScope.Decoration) != null)
Expand Down
2 changes: 2 additions & 0 deletions NBi.Xml/Decoration/Command/SqlRunXml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public string ConnectionString
{
get
{
if (!string.IsNullOrEmpty(SpecificConnectionString) && SpecificConnectionString.StartsWith("@"))
return Settings.GetReference(SpecificConnectionString.Remove(0, 1)).ConnectionString;
if (!String.IsNullOrWhiteSpace(SpecificConnectionString))
return SpecificConnectionString;
if (Settings != null && Settings.GetDefault(SettingsXml.DefaultScope.Decoration) != null)
Expand Down

0 comments on commit 9d40ad5

Please sign in to comment.