private EFSQLiteDBContext CreateContextForInMemory()
        {
            var option = new DbContextOptionsBuilder <EFSQLiteDBContext>().UseInMemoryDatabase(databaseName: "Repository_Tests").Options;
            //var option = new DbContextOptionsBuilder<EFSQLiteDBContext>().UseSqlite("DataSource=:memory:").Options;

            var context = new EFSQLiteDBContext(option);

            if (context != null)
            {
                context.Database.EnsureDeleted();
                context.Database.EnsureCreated();
            }

            return(context);
        }
 public EFSQLiteProductsRepository(EFSQLiteDBContext dbContext)
 {
     _dbContext = dbContext;
 }
 public EFSqliteProductsRepositoryTest()
 {
     _context = this.CreateContextForInMemory();
     _repo    = new EFSQLiteProductsRepository(_context);
 }