public DbSetSoftwareTests() { var optionsBuilder = new DbContextOptionsBuilder<EfAsLicenceContext>(); optionsBuilder.UseSqlServer("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AS_LICENCE;Data Source=."); EfAsLicenceContext context = new EfAsLicenceContext(optionsBuilder.Options); _unitOfWork = new EfUnitOfWork(context); }
public CustomerManagerTests(ITestOutputHelper outputHelper) { this._outputHelper = outputHelper; var optionsBuilder = new DbContextOptionsBuilder <EfAsLicenceContext>(); optionsBuilder.UseSqlServer("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AS_LICENCE;Data Source=."); EfAsLicenceContext context = new EfAsLicenceContext(optionsBuilder.Options); _unitOfWork = new EfUnitOfWork(context); _customerManager = new CustomerService(_unitOfWork); }
public EfUnitOfWork(EfAsLicenceContext context) { this._context = context; }
public EfEntityRepositoryBase(EfAsLicenceContext context) { _context = context; _dbSet = _context.Set <TEntity>(); }