public SqlServerCeTestTable(SqlServerCeProcessor processor, params string[] columnDefinitions)
        {
            Connection = (SqlCeConnection)processor.Connection;
            Quoter = new SqlServerQuoter();

            Name = "TestTable";
            Create(columnDefinitions);
        }
 public void SetUp()
 {
     DatabaseFilename = "TestDatabase.sdf";
     RecreateDatabase();
     Connection = new SqlCeConnection(IntegrationTestOptions.SqlServerCe.ConnectionString);
     Processor = new SqlServerCeProcessor(Connection, new SqlServerCeGenerator(), new TextWriterAnnouncer(System.Console.Out), new ProcessorOptions(), new SqlServerCeDbFactory());
     Connection.Open();
     Processor.BeginTransaction();
 }
 public virtual void TearDown()
 {
     if (_processor != null)
      {
     _processor.Dispose();
     _processor = null;
      }
      Directory.Delete(_tempFolder, true);
 }
        public virtual void Setup()
        {
            _tempFolder = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());

             Directory.CreateDirectory(_tempFolder);

             TempDb = Path.Combine(_tempFolder, "test.sdf");

             ConnectionString = "Data Source=" + TempDb;

             var engine = new SqlCeEngine(ConnectionString);
             engine.CreateDatabase();

             _connection = new SqlCeConnection(ConnectionString);
             _processor = new SqlServerCeProcessor(_connection, new SqlServerCeGenerator(), new TextWriterAnnouncer(System.Console.Out), new ProcessorOptions());
        }