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

            var connection = DbConnectionFactory.CreateTransient();

            _context = new SampleEntities(connection);
            _context.Fill();
        }
Example #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();
        }
Example #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);
        }
Example #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();
        }