Esempio n. 1
0
        /// <summary>
        /// Step 1:
        ///     Use a new connection to create the only table the application uses.
        ///     But before we can do this, we need to clear all internal data (table, views, etc..)
        ///     After this we can create the table.
        /// Step 2:
        ///     Store a connection to the internal database structure. This is not a required step.
        ///     But waste not, want not.
        /// </summary>
        public WebTestBuilder()
        {
            var connection = (MemoryDbConnection) new MemoryDbConnectionFactory(  ).Create(  );

            Database = connection.GetMemoryDatabase( );
            Database.Clear(  );
            connection.Execute(_SqlCreateTable);
        }