Exemplo n.º 1
0
 public void Setup()
 {
     _connection = "connection";
     _sqLiteConnectionWrapperFactory = A.Fake <ISqLiteConnectionWrapperFactory>();
     _sqLiteConnectionWrapper        = A.Fake <ISqLiteConnectionWrapper>();
     _sqLiteDatabase = new SqLiteDatabase(_connection, _sqLiteConnectionWrapperFactory);
 }
Exemplo n.º 2
0
 public SqLiteDatabaseBuilder(IDatabaseTableCreationQueries databaseTableCreationQueries, IFileExplorer fileExplorer, ISqLiteDatabaseFactory sqLiteDatabaseFactory, ISqLiteConnectionWrapperFactory sqLiteConnectionWrapperFactory)
 {
     _databaseTableCreationQueries = databaseTableCreationQueries;
     _fileExplorer                   = fileExplorer;
     _sqLiteDatabaseFactory          = sqLiteDatabaseFactory;
     _sqLiteConnectionWrapperFactory = sqLiteConnectionWrapperFactory;
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public ISqLiteDatabase Create(string connection, ISqLiteConnectionWrapperFactory sqLiteConnectionWrapperFactory)
 {
     return(new SqLiteDatabase(connection, sqLiteConnectionWrapperFactory));
 }
Exemplo n.º 5
0
 public SqLiteDatabase(string connection, ISqLiteConnectionWrapperFactory sqLiteConnectionWrapperFactory)
 {
     _connection = "Data Source=" + connection;
     _sqLiteConnectionWrapperFactory = sqLiteConnectionWrapperFactory;
 }