Esempio n. 1
0
        public Investigate()
        {
            this.connectionFactory = new DebugConnectionFactory();
            this.cacheFactory      = new DebugCacheFactory();

            var configuration = new Configuration
            {
                ConnectionString  = ConfigurationManager.ConnectionStrings["allors"].ConnectionString,
                ObjectFactory     = Config.ObjectFactory,
                IsolationLevel    = IsolationLevel.Snapshot,
                CommandTimeout    = 0,
                ConnectionFactory = this.connectionFactory,
                CacheFactory      = this.cacheFactory
            };

            this.database = new Database(configuration);
        }
Esempio n. 2
0
 protected void SetUp()
 {
     this.connectionFactory = new DebugConnectionFactory();
     this.cacheFactory      = new DebugCacheFactory();
     this.profile           = new Profile(this.connectionFactory, this.cacheFactory);
 }
Esempio n. 3
0
 public Profile(DebugConnectionFactory connectionFactory, DebugCacheFactory cacheFactory)
 {
     this.connectionFactory = connectionFactory;
     this.cacheFactory      = cacheFactory;
 }