|
3 | 3 | using NHibernate.Bytecode;
|
4 | 4 | using NHibernate.Cache;
|
5 | 5 | using NHibernate.Cfg;
|
6 |
| -using NHibernate.Cfg.Loquacious; |
7 | 6 | using NHibernate.Dialect;
|
8 | 7 | using NHibernate.Driver;
|
9 | 8 | using NHibernate.Hql.Ast.ANTLR;
|
10 | 9 | using NHibernate.Linq.Functions;
|
11 | 10 | using NHibernate.Type;
|
12 | 11 | using NUnit.Framework;
|
13 | 12 | using NHibernate.Exceptions;
|
| 13 | +using NHibernate.MultiTenancy; |
14 | 14 |
|
15 | 15 | namespace NHibernate.Test.CfgTest.Loquacious
|
16 | 16 | {
|
@@ -63,6 +63,7 @@ public void FullConfiguration()
|
63 | 63 | db.MaximumDepthOfOuterJoinFetching = 11;
|
64 | 64 | db.HqlToSqlSubstitutions = "true 1, false 0, yes 'Y', no 'N'";
|
65 | 65 | db.SchemaAction = SchemaAutoAction.Validate;
|
| 66 | + db.MultiTenancy = MultiTenancyStrategy.Database; |
66 | 67 | });
|
67 | 68 |
|
68 | 69 | Assert.That(configure.Properties[Environment.SessionFactoryName], Is.EqualTo("SomeName"));
|
@@ -107,7 +108,8 @@ public void FullConfiguration()
|
107 | 108 | Assert.That(configure.Properties[Environment.QuerySubstitutions], Is.EqualTo("true 1, false 0, yes 'Y', no 'N'"));
|
108 | 109 | Assert.That(configure.Properties[Environment.Hbm2ddlAuto], Is.EqualTo("validate"));
|
109 | 110 | Assert.That(configure.Properties[Environment.LinqToHqlGeneratorsRegistry], Is.EqualTo(typeof(DefaultLinqToHqlGeneratorsRegistry).AssemblyQualifiedName));
|
110 |
| - |
| 111 | + Assert.That(configure.Properties[Environment.MultiTenancy], Is.EqualTo(nameof(MultiTenancyStrategy.Database))); |
| 112 | + |
111 | 113 | // Keywords import and auto-validation require a valid connection string, disable them before checking
|
112 | 114 | // the session factory can be built.
|
113 | 115 | configure.SetProperty(Environment.Hbm2ddlKeyWords, "none");
|
|
0 commit comments