Beispiel #1
0
        public void Setup()
        {
            var optionsBuilder = new DbContextOptionsBuilder <DefaultContext>();

            optionsBuilder.ConfigureMysql("Server=127.0.0.1;Database=RecipeBackendTesting;User=root;Password=;", false);
            dbOptions = optionsBuilder.Options;
            context   = new DefaultContext(dbOptions);
            context.Database.Migrate();
            _transaction = context.Database.BeginTransaction();
        }