public CheckpointController(ICheckpointService checkpointService, ITypeService typeService, IAdmissionService admissionService) { this.checkpointService = checkpointService; this.typeService = typeService; this.admissionService = admissionService; }
public AdmissionController( IUnitOfWork unitOfWork, IAdmissionService service) { _unitOfWork = unitOfWork; _service = service; }
public AdmissionController(IAdmissionService service, ILogger <AdmissionController> logger, IHttpContextAccessor httpContextAccessor, ApplicationDbContext context) { _service = service; _logger = logger; _httpContextAccessor = httpContextAccessor; _context = context; CurrentUser.Configure(_httpContextAccessor); }
public SparkSubmitWorker(ISubscriber subscriber, IAdmissionService admission, IControllerService controller, ISchedulerService scheduler) { this.subscriber = subscriber; this.admission = admission; this.controller = controller; this.scheduler = scheduler; }
public void Initialize() { repositoryMock = new Mock <IRepository <Admission> >(); repositoryMock = new Mock <IRepository <Admission> >(); unitWorkMoq = new Mock <IUnitOfWork>(); serviceMock = new AdmissionService(unitWorkMoq.Object); itemsAdmission = new List <Admission>() { new Admission { ID = 1, Role = "Сотрудник", Description = "Вход в лабораторию" }, new Admission { ID = 2, Role = "Студент", Description = "Вход в 1-й корпус" } }; }
public AdmissionController(IAdmissionService service) { this.service = service; }
/// <summary> /// Constructor /// </summary> /// <param name="admissionService"></param> public AdmissionRuleEngine(IAdmissionService admissionService) { this._admissionService = admissionService; }
public void init() { uw = new UnitOfWork(new Entity.K_12Entities()); admissionservice = new AdmissionService(new StudentService(uw.Students), new ParentService(uw.Parents)); }