public HomeController(TESTContext context, ILogger <HomeController> logger, IDepartmentService departmentService, IEmployeeService employeeService, IUnitOfWork unitOfWork)
 {
     _context           = context;
     _logger            = logger;
     _departmentService = departmentService;
     _employeeService   = employeeService;
     _unitOfWork        = unitOfWork;
 }
Exemple #2
0
        public RDSRepo(TESTContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            _context = context;
        }
 //Openning connection using Dependency injection
 public RawRepository(TESTContext context, string sql)
 {
     _context    = context;
     _sql        = sql;
     _connection = _context.Database.GetDbConnection();
     if (_connection.State != ConnectionState.Open)
     {
         _connection.Open();
     }
 }
Exemple #4
0
 public ProductsController(TESTContext context)
 {
     _context = context;
 }
 public UnitOfWork(IOptions <SqlOption> connectionString)
 {
     _repositories = new Hashtable();
     _context      = new TESTContext(connectionString);
 }
Exemple #6
0
 public DepartmentsController(TESTContext context, IUnitOfWork unitOfWork, IDepartmentService departmentService)
 {
     _context           = context;
     _unitOfWork        = unitOfWork;
     _departmentService = departmentService;
 }
Exemple #7
0
 public Repository(TESTContext context)
 {
     _context  = context;
     _entities = context.Set <TEntity>();
 }
Exemple #8
0
 public AuthorizeController(TESTContext context, TESTResourceContext contextResource, IOptions <AppSettings> settings)
 {
     _context        = context;
     _contextResouce = contextResource;
     _settings       = settings.Value;
 }
 public EmployeesController(TESTContext context, IUnitOfWork unitOfWork)
 {
     _context    = context;
     _unitOfWork = unitOfWork;
 }
 public AlumnosController(TESTContext context)
 {
     _context = context;
 }
Exemple #11
0
 public BusinessPerson(TESTContext context)
 {
     _context = context;
 }
Exemple #12
0
 public ColoniaController(TESTContext context)
 {
     _context = context;
 }
 public TokenController(IConfiguration config, TESTContext context)
 {
     _configuration = config;
     _context       = context;
 }