예제 #1
0
 public void SetupTests()
 {
     db = MockRepository.GenerateMock<IDBConnection>();
     taskRepo = MockRepository.GenerateMock<ScrapeTaskRepository>(db);
     billingAccountRepo = MockRepository.GenerateMock<BillingAccountRepository>(db);
     scrapeTaskFactory = MockRepository.GenerateMock<ScrapeTaskFactory>();
 }
        public void InitializeCreateConfigTest()
        {
            DBConfig dbConfigSource = new DBConfig("System.Data.OleDb", String.Format(@"Provider=Microsoft.JET.OLEDB.4.0;data source={0}\DatabaseSource.mdb", AppDomain.CurrentDomain.BaseDirectory));
            dbConnectionSource = new DBConnection();
            dbConnectionSource.Initialize(dbConfigSource);

            DBConfig dbConfigTarget = new DBConfig("System.Data.OleDb", String.Format(@"Provider=Microsoft.JET.OLEDB.4.0;data source={0}\DatabaseTarget.mdb", AppDomain.CurrentDomain.BaseDirectory));
            dbConnectionTarget = new DBConnection();
            dbConnectionTarget.Initialize(dbConfigTarget);

            convertName = new ConvertName();
            columnMigrator = new ColumnMigrator(convertName);
            logger = new Log4NetLogger();
        }
예제 #3
0
 public DocsDalImpl(IDALinfra dalInfra, IConfiguration configuration)
 {
     _dalInfra      = dalInfra;
     _strConnection = configuration.GetConnectionString("appDbConnection");
     _conn          = _dalInfra.Connect(_strConnection);
 }
예제 #4
0
 public ReservationProcessor(IDBConnection dbConnection)
 {
     this.FlexDeskConnection = dbConnection.connectionString;
 }
예제 #5
0
 public SQLiteDb(IDBConnection dbConnection)
 {
     _dbConnection = dbConnection;
 }
예제 #6
0
 public AbsenceProvider(IDBConnection dbConnection)
 {
     this.FlexDeskConnection = dbConnection.connectionString;
 }
예제 #7
0
 public DiscountsRepository(IDBConnection oIDBConnection)
 {
     conn = oIDBConnection.GetAsyncConnection();
 }
예제 #8
0
        public void RemoveDocument(IDBConnection conn, string docID)
        {
            IDBParameter docIDParam = _dal.CreateParameter("P_DOC_ID", docID);

            _dal.ExecuteSPQuery(conn, "REMOVEDOCUMENT", docIDParam);
        }
 public BuildingProcessor(IDBConnection dbConnection)
 {
     this.FlexDeskConnection = dbConnection.connectionString;
 }
예제 #10
0
 public DataIntegrityRuleRepository(IDBConnection DBConnection)
 {
     dataConnection = DBConnection;
 }
예제 #11
0
 public DepartmentProvider(IDBConnection dbConnection)
 {
     this.FlexDeskConnection = dbConnection.connectionString;
 }
예제 #12
0
 public StudentFundingSourceService()
 {
     _dbconnection  = DependencyService.Get <IDBConnection>();
     _sqlConnection = _dbconnection.GetConnection();
     _sqlConnection.CreateTable <StudentFundingSources>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BillingCompanyRepository"/> class.
 /// </summary>
 /// <param name="DBConnection">The database connection.</param>
 public BillingCompanyRepository(IDBConnection DBConnection)
 {
     this.dataConnection = DBConnection;
 }
 public ScrapeTaskRepository(IDBConnection _dbConnection)
 {
     dbConnection = _dbConnection;
 }
 public DataIntegrityRuleRepository(IDBConnection DBConnection)
 {
     dataConnection = DBConnection;
 }
예제 #16
0
 public IDBCommand GetCommand(IDBConnection dBConnection)
 {
     return(new DBCommand(dBConnection));
 }
예제 #17
0
 public BouquetsRepository(IDBConnection oIDBConnection)
 {
     conn = oIDBConnection.GetAsyncConnection();
 }
예제 #18
0
 internal TableInfo(IDBConnection dbConnection, string schema, string name)
 {
     Schema = schema;
     Name   = name.ToLower();
     PopulateColumnDefinitions(dbConnection);
 }
예제 #19
0
 public TestRepository(IDBConnection dbConnection)
 {
     mDbConnection = dbConnection;
 }
예제 #20
0
 private DataTable GetSchemaTable(IDBConnection dbConnection)
 {
     return(dbConnection.GetTableSchema(Name, DB_COMMAND_TIMEOUT));
 }
예제 #21
0
        public void RemoveMarker(IDBConnection conn, string markerID)
        {
            IDBParameter markerIDParam = _dal.CreateParameter("P_MARKER_ID", markerID);

            _dal.ExecuteSPQuery(conn, "REMOVEMARKER", markerIDParam);
        }
 public BayListViewModel(IUserDialogs dialogs, ILogger logger) : base(dialogs, logger)
 {
     _dbConnection = ViewModelLocator.Container.Resolve <IDBConnection>();
 }
 public ApplicationUserRepository(AppSettingsConfiguration s, ILogger l, IDBConnection d) :
     base(s, l, d)
 {
     Initialize(l);
 }
예제 #24
0
 public AccountController(ILogger <AccountController> l, IOptions <AppSettingsConfiguration> s, IIdentityManager m, IDBConnection d)
 {
     logger          = l;
     settings        = s.Value;
     identityManager = m;
     dbc             = d;
 }
예제 #25
0
        public DBTemplate(IDBFactory dbFactory)
        {
            factory = dbFactory;

            sqlConnection = factory.GetConnection();
        }
예제 #26
0
 public PaymentsRepository(IDBConnection oIDBConnection)
 {
     conn = oIDBConnection.GetAsyncConnection();
 }
 public ProductResearchCodeValuesService()
 {
     _dbconnection  = DependencyService.Get <IDBConnection>();
     _sqlConnection = _dbconnection.GetConnection();
     _sqlConnection.CreateTable <ProductResearchCodeValues>();
 }
예제 #28
0
 public DataEngine(IDBConnection dbConn)
 {
     dbConnection = dbConn;
 }
예제 #29
0
 public StudentTestFormsService()
 {
     _dbconnection  = DependencyService.Get <IDBConnection>();
     _sqlConnection = _dbconnection.GetConnection();
     _sqlConnection.CreateTable <StudentTestForms>();
 }
예제 #30
0
 public CommentDAL(IInfraDal SQLDAL)
 {
     _SQLDAL         = SQLDAL;
     _paramConverter = new DBParameterConverter(_SQLDAL);
     con             = _SQLDAL.Connect("Server=LAPTOP-B6F4SVRM;Database=DocumentProject;" + "Trusted_Connection=True;");
 }
예제 #31
0
 public SpecialDealsRepository(IDBConnection oIDBConnection)
 {
     conn = oIDBConnection.GetAsyncConnection();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BillingCompanyRepository"/> class.
 /// </summary>
 /// <param name="DBConnection">The database connection.</param>
 public BillingAccountRepository(IDBConnection DBConnection)
 {
     this.dataConnection = DBConnection;
 }
예제 #33
0
 public FloorProcessor(IDBConnection dbConnection)
 {
     this.FlexDeskConnection = dbConnection.connectionString;
 }
예제 #34
0
 public Propagator(Files.Storage.Storage storage, IDBConnection connection, IList <string> ignores)
 {
     this.storage    = storage;
     this.connection = connection;
     this.ignores    = ignores;
 }
예제 #35
0
 public CardsRepository(IDBConnection oIDBConnection)
 {
     conn = oIDBConnection.GetAsyncConnection();
 }
 /// <summary>
 /// Export stocktake data as a CSV file
 /// </summary>
 public CsvExportService(IUserDialogs dialogs, ILogger logger, IDBConnection dbConnection)
 {
     _dialogs      = dialogs;
     _logger       = logger;
     _dbConnection = dbConnection;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BillingCompanyRepository"/> class.
 /// </summary>
 /// <param name="DBConnection">The database connection.</param>
 public APSUserRepository(IDBConnection DBConnection)
 {
     this.dataConnection = DBConnection;
 }
예제 #38
0
        public void RemoveUser(IDBConnection conn, string userID)
        {
            IDBParameter userIDParam = _dal.CreateParameter("UserID", userID);

            _dal.ExecuteSPQuery(conn, "RemoveUser", userIDParam);
        }