コード例 #1
0
 public void Delegates_to_internal_configuration()
 {
     Assert.NotNull(DbConfiguration.GetService <IDbCommandInterceptor>(null));
 }
コード例 #2
0
 public void Default_IDbModelCacheKeyFactory_is_returned_by_default()
 {
     Assert.IsType <DefaultModelCacheKeyFactory>(DbConfiguration.GetService <IDbModelCacheKeyFactory>());
 }
コード例 #3
0
 public void DefaultConnectionFactory_set_in_code_can_be_overriden_before_config_is_locked()
 {
     Assert.IsType <SqlConnectionFactory>(DbConfiguration.GetService <IDbConnectionFactory>());
     Assert.IsType <DefaultUnitTestsConnectionFactory>(FunctionalTestsConfiguration.OriginalConnectionFactories[0]);
 }