Skip to content

Commit e19b3c2

Browse files
committed
NH-4008 - Mark all usages of obsolete drivers so there's no errors.
1 parent 6859ea1 commit e19b3c2

File tree

18 files changed

+54
-5
lines changed

18 files changed

+54
-5
lines changed

src/NHibernate.Test/Async/DriverTest/FirebirdClientDriverFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace NHibernate.Test.DriverTest
2121
using System.Threading.Tasks;
2222
using System.Threading;
2323
[TestFixture]
24+
[Obsolete("Uses old driver")]
2425
public class FirebirdClientDriverFixtureAsync
2526
{
2627
private string _connectionString;

src/NHibernate.Test/Async/Futures/FallbackFixture.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//------------------------------------------------------------------------------
99

1010

11+
using System;
1112
using System.Linq;
1213
using NHibernate.Cfg;
1314
using NHibernate.Connection;
@@ -31,6 +32,7 @@ namespace NHibernate.Test.Futures
3132
/// but this way it's just much easier to test this
3233
/// </summary>
3334
[TestFixture]
35+
[Obsolete("Uses old driver")]
3436
public class FallbackFixtureAsync : FutureFixture
3537
{
3638
protected override bool AppliesTo(Dialect.Dialect dialect)

src/NHibernate.Test/Async/NHSpecificTest/NH2660And2661/Test.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace NHibernate.Test.NHSpecificTest.NH2660And2661
1818
{
1919
using System.Threading.Tasks;
2020
[TestFixture]
21+
[Obsolete("Uses old driver")]
2122
public class TestAsync : BugTestCase
2223
{
2324
protected override void OnSetUp()

src/NHibernate.Test/Async/NHSpecificTest/NH3202/Fixture.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@
88
//------------------------------------------------------------------------------
99

1010

11+
using System;
1112
using System.Data.Common;
1213
using System.Text.RegularExpressions;
1314
using NHibernate.Cfg;
1415
using NHibernate.Dialect;
1516
using NHibernate.Driver;
1617
using NHibernate.Util;
1718
using NUnit.Framework;
19+
using Environment = NHibernate.Cfg.Environment;
1820

1921
namespace NHibernate.Test.NHSpecificTest.NH3202
2022
{
2123
using System.Threading.Tasks;
2224
[TestFixture]
25+
[Obsolete("Uses old driver")]
2326
public class FixtureAsync : BugTestCase
2427
{
2528
protected override void Configure(Configuration configuration)

src/NHibernate.Test/Async/Pagination/CustomDialectFixture.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//------------------------------------------------------------------------------
99

1010

11+
using System;
1112
using System.Collections;
1213
using System.Collections.Generic;
1314
using NHibernate.Cfg;
@@ -21,6 +22,7 @@ namespace NHibernate.Test.Pagination
2122
{
2223
using System.Threading.Tasks;
2324
[TestFixture]
25+
[Obsolete("Uses old driver")]
2426
public class CustomDialectFixtureAsync : TestCase
2527
{
2628
protected override string MappingsAssembly

src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Data;
23
using System.Data.SqlClient;
34
using System.IO;
@@ -12,13 +13,15 @@
1213
using NHibernate.Linq;
1314
using NHibernate.Type;
1415
using NUnit.Framework;
16+
using Environment = NHibernate.Cfg.Environment;
1517

1618
namespace NHibernate.Test.CfgTest.Loquacious
1719
{
1820
[TestFixture]
1921
public class ConfigurationFixture
2022
{
2123
[Test]
24+
[Obsolete("Uses old driver")]
2225
public void CompleteConfiguration()
2326
{
2427
const string connectionString = "The connection string";

src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Data;
23
using NHibernate.AdoNet;
34
using NHibernate.Bytecode;
@@ -10,13 +11,15 @@
1011
using NHibernate.Type;
1112
using NUnit.Framework;
1213
using NHibernate.Exceptions;
14+
using Environment = NHibernate.Cfg.Environment;
1315

1416
namespace NHibernate.Test.CfgTest.Loquacious
1517
{
1618
[TestFixture]
1719
public class LambdaConfigurationFixture
1820
{
1921
[Test]
22+
[Obsolete("Uses old driver")]
2023
public void FullConfiguration()
2124
{
2225
var configure = new Configuration();

src/NHibernate.Test/DriverTest/FirebirdClientDriverFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace NHibernate.Test.DriverTest
1010
{
1111
[TestFixture]
12+
[Obsolete("Uses old driver")]
1213
public class FirebirdClientDriverFixture
1314
{
1415
private string _connectionString;

src/NHibernate.Test/DriverTest/OracleDataClientDriverFixture.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
namespace NHibernate.Test.DriverTest
1414
{
1515
[TestFixture]
16+
[Obsolete("Uses old driver")]
1617
public class OracleDataClientDriverFixture
1718
{
1819
/// <summary>
@@ -151,4 +152,4 @@ private static object GetOracleParameterType(DbParameter dbParameter)
151152
return typeProperty.GetValue(dbParameter);
152153
}
153154
}
154-
}
155+
}

src/NHibernate.Test/Futures/FallbackFixture.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Linq;
23
using NHibernate.Cfg;
34
using NHibernate.Connection;
@@ -10,6 +11,7 @@
1011

1112
namespace NHibernate.Test.Futures
1213
{
14+
[Obsolete("Uses old driver")]
1315
public class TestDriverThatDoesntSupportQueryBatching : SqlClientDriver
1416
{
1517
public override bool SupportsMultipleQueries => false;
@@ -23,6 +25,7 @@ public class TestDriverThatDoesntSupportQueryBatching : SqlClientDriver
2325
/// but this way it's just much easier to test this
2426
/// </summary>
2527
[TestFixture]
28+
[Obsolete("Uses old driver")]
2629
public class FallbackFixture : FutureFixture
2730
{
2831
protected override bool AppliesTo(Dialect.Dialect dialect)

0 commit comments

Comments
 (0)