예제 #1
0
        public void entity_framework_context_from_business_layer_returns_on_testdb()
        {
            TestDatabaseEnsurer tester   = new TestDatabaseEnsurer();
            BaseDBAccess        dbAccess = new BaseDBAccess();

            Assert.That(tester.IsConnStringPointingToTestDB(dbAccess.Database.Database.Connection.ConnectionString), Is.True);
            Assert.That(tester.IsOnTestDB(), Is.True);
        }
        public InfaStatistics(string processName, BIFramework.BaseDBAccess.DBType DBType, string connectionString, string InfaISName, string InfaDomainName)
            : base(InfaISName, InfaDomainName)
        {
            _processName      = processName;
            _DBType           = DBType;
            _connectionString = connectionString;
            switch (DBType)
            {
            case BaseDBAccess.DBType.Oracle:
                _DBAccess = new BIFramework.OracleDBAccess();
                break;

            case BaseDBAccess.DBType.SQLServer:
                _DBAccess = new BIFramework.SQLDBAccess();
                break;

            default:
                break;
            }
        }