Beispiel #1
0
        public void SetUp()
        {
            Effort.Provider.EffortProviderConfiguration.RegisterProvider();

            var connection = DbConnectionFactory.CreateTransient();

            _context = new SampleEntities(connection);
            _context.Fill();
        }
Beispiel #2
0
        public void SetUp()
        {
            //Se cambió a SQLite por compatibilidad

            _context = new SampleEntities();
            _context.Database.EnsureDeleted();
            _context.Database.EnsureCreated();
            _context.Database.Migrate();
            _context.Fill();
        }
Beispiel #3
0
        public void SetUp()
        {
            Effort.Provider.EffortProviderConfiguration.RegisterProvider();

            var connection = DbConnectionFactory.CreateTransient();

            _context = new SampleEntities(connection);
            _context.Fill();

            _repo = new DataSourceRepository();
            _repo.AddSource(_context.Things);
        }
Beispiel #4
0
        public void SetUp()
        {
            //Se cambió a SQLite por compatibilidad
            // Effort.Provider.EffortProviderConfiguration.RegisterProvider();
            //var connection = DbConnectionFactory.CreateTransient();

            _context = new SampleEntities();
            _context.Database.EnsureDeleted();
            _context.Database.EnsureCreated();
            _context.Database.Migrate();
            _context.Fill();
        }