Ejemplo n.º 1
0
        public void FixtureSetUp()
        {
            myDbFile = Path.GetTempFileName();

            // lets keep this here for performance reason
            myDB = new SQLiteDatabaseSC(myDbFile);
            myDB.CreateDatabase();
        }
Ejemplo n.º 2
0
        public override void Init()
        {
            Config config = new Config();

            if (config.TomDatabaseUri.IsNullOrTrimmedEmpty())
            {
                config.TomDatabaseUri = Path.Combine(MauiEnvironment.Root, "maui_test.db");
                // TODO: do we want to do this
                //Settings.Default.Save();
            }

            myLogger.Info("Using Tom-Database: " + config.TomDatabaseUri);

            IDatabaseSC db = new SQLiteDatabaseSC(config.TomDatabaseUri);

            Engine.ServiceProvider.RegisterService("TOM Database", db);
        }