public BLLUnitTests()
 {
     _context = new FakeSqlServerDbContext(new DbContextOptionsBuilder <FakeSqlServerDbContext>()
                                           .UseInMemoryDatabase("LINQTestDatabase")
                                           .Options);
     _context.Database.EnsureCreated();
     this._service = new LINQService(new FakeUnitOfWork(_context));
 }
 public FakeRepository(FakeSqlServerDbContext context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }
 public FakeUnitOfWork(FakeSqlServerDbContext context)
 {
     _context = context;
 }