public void Setup() { _connection = "connection"; _sqLiteConnectionWrapperFactory = A.Fake <ISqLiteConnectionWrapperFactory>(); _sqLiteConnectionWrapper = A.Fake <ISqLiteConnectionWrapper>(); _sqLiteDatabase = new SqLiteDatabase(_connection, _sqLiteConnectionWrapperFactory); }
public SqLiteDatabaseBuilder(IDatabaseTableCreationQueries databaseTableCreationQueries, IFileExplorer fileExplorer, ISqLiteDatabaseFactory sqLiteDatabaseFactory, ISqLiteConnectionWrapperFactory sqLiteConnectionWrapperFactory) { _databaseTableCreationQueries = databaseTableCreationQueries; _fileExplorer = fileExplorer; _sqLiteDatabaseFactory = sqLiteDatabaseFactory; _sqLiteConnectionWrapperFactory = sqLiteConnectionWrapperFactory; }
public void Setup() { _databaseTableCreationQueries = A.Fake <IDatabaseTableCreationQueries>(); _fileExplorer = A.Fake <IFileExplorer>(); _connectionWrapperFactory = A.Fake <ISqLiteConnectionWrapperFactory>(); _sqLiteDatabaseFactory = A.Fake <ISqLiteDatabaseFactory>(); _sqLiteDatabase = A.Fake <ISqLiteDatabase>(); _databaseBuilder = new SqLiteDatabaseBuilder(_databaseTableCreationQueries, _fileExplorer, _sqLiteDatabaseFactory, _connectionWrapperFactory); }
public ISqLiteDatabase Create(string connection, ISqLiteConnectionWrapperFactory sqLiteConnectionWrapperFactory) { return(new SqLiteDatabase(connection, sqLiteConnectionWrapperFactory)); }
public SqLiteDatabase(string connection, ISqLiteConnectionWrapperFactory sqLiteConnectionWrapperFactory) { _connection = "Data Source=" + connection; _sqLiteConnectionWrapperFactory = sqLiteConnectionWrapperFactory; }