Exemplo 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);
        }
Exemplo n.º 2
0
 public Profile(DebugConnectionFactory connectionFactory, DefaultCacheFactory cacheFactory)
     : this()
 {
     this.connectionFactory = connectionFactory;
     this.cacheFactory      = cacheFactory;
 }
Exemplo n.º 3
0
 protected void SetUp()
 {
     this.connectionFactory = new DebugConnectionFactory();
     this.cacheFactory      = new DebugCacheFactory();
     this.profile           = new Profile(this.connectionFactory, this.cacheFactory);
 }
Exemplo n.º 4
0
 public DebugTests()
 {
     this.connectionFactory = new DebugConnectionFactory();
     this.cacheFactory      = new DefaultCacheFactory();
     this.profile           = new Profile(this.connectionFactory, this.cacheFactory);
 }