public void Delegates_to_internal_configuration() { Assert.NotNull(DbConfiguration.GetService <IDbCommandInterceptor>(null)); }
public void Default_IDbModelCacheKeyFactory_is_returned_by_default() { Assert.IsType <DefaultModelCacheKeyFactory>(DbConfiguration.GetService <IDbModelCacheKeyFactory>()); }
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]); }