public TbsalesController(DBTestContext context) { _context = context; }
public TbinvoiceDetailsController(DBTestContext context) { _context = context; }
public TbcouriersController(DBTestContext context) { _context = context; }
public ClaimRepository(DBTestContext context) { _context = context; }
public BrigadeRepository(DBTestContext context) { _context = context; }
public EmployeesController(DBTestContext context) { _EmployeeBL = new EmployeeBL(context); }
public ValuesController(DBTestContext context) { _context = context; }
public HomeController(ILogger <HomeController> logger, DBTestContext context) { _logger = logger; _context = context; }
//Property Injection //public IRepository<Employee> employeeDataObject //{ // set // { // this._repository = value; // } // get // { // if (employeeDataObject == null) // { // throw new Exception("Employee is not initialized"); // } // else // { // return _repository; // } // } //} //IRepository<Employee> obj //Constractor Injection public EmployeeBL(DBTestContext context) { _repository = new EmployeeRepository(context); }
public EmployeeRepository(DBTestContext db) { _db = db; }
public TbpaymentsController(DBTestContext context) { _context = context; }
public TaskRepository(DBTestContext context) { _context = context; }