public TbsalesController(DBTestContext context)
 {
     _context = context;
 }
示例#2
0
 public TbinvoiceDetailsController(DBTestContext context)
 {
     _context = context;
 }
 public TbcouriersController(DBTestContext context)
 {
     _context = context;
 }
示例#4
0
 public ClaimRepository(DBTestContext context)
 {
     _context = context;
 }
示例#5
0
 public BrigadeRepository(DBTestContext context)
 {
     _context = context;
 }
示例#6
0
 public EmployeesController(DBTestContext context)
 {
     _EmployeeBL = new EmployeeBL(context);
 }
示例#7
0
 public ValuesController(DBTestContext context)
 {
     _context = context;
 }
 public HomeController(ILogger <HomeController> logger, DBTestContext context)
 {
     _logger  = logger;
     _context = context;
 }
示例#9
0
        //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;
 }
示例#12
0
 public TaskRepository(DBTestContext context)
 {
     _context = context;
 }