public TreatmentRecordController(IReportService reportService, ITreatmentRecordServices TreatmentRecordServices, IHospitalServices HospitalServices, IStateProvinceService StateProvinceService, IPermissionService permissionService, ITreatmentServices TreatmentServices, INurseServices NurseServices, IPDFService pDFService, ICompanyProfileService CompanyProfileService, IAppointmentServices AppointmentServices, IExcelService excelService, IEncryptionService encryptionService, IWordDocService WordDocService) : base(excelService: excelService) { this._reportService = reportService; this._treatmentRecordServices = TreatmentRecordServices; this._hospitalServices = HospitalServices; this._stateProvinceService = StateProvinceService; this._permissionService = permissionService; this._treatmentServices = TreatmentServices; this._nurseServices = NurseServices; this._pDFService = pDFService; this._appointmentServices = AppointmentServices; this._companyProfileService = CompanyProfileService; this._encryptionService = encryptionService; this._excelService = excelService; this._wordDocService = WordDocService; }
public HomeController( IPermissionService permissionService, IWorkContext workContext, ITreatmentRecordServices TreatmentRecordServices, ITreatmentServices TreatmentServices, IReportService ReportService, IEncryptionService encryptionService, INurseServices NurseServices, IHospitalServices HospitalServices, ICompanyProfileService CompanyProfileService, IAppointmentServices AppointmentServices, IExcelService excelService ) { this._permissionService = permissionService; this._treatmentRecordServices = TreatmentRecordServices; this._treatmentServices = TreatmentServices; this._workContext = workContext; this._reportService = ReportService; this._encryptionService = encryptionService; this._nurseServices = NurseServices; this._hospitalServices = HospitalServices; this._appointmentServices = AppointmentServices; this._companyProfileService = CompanyProfileService; this.excelService = excelService; }
public HospitalController() { _unitOfWork = new UnitOfWork(); _hospitalservice = new HospitalService(); _hdocMapService = new HospitalDoctormap(); _userService = new UserService(); _departmentService = new DepartmentService(); _hospitalDeptmapService = new HospitalDeptmap(); }
public HospitalController(IHospitalServices HospitalServices, IAddressService AddressService, ITreatmentRecordServices TreatmentRecordService, IPermissionService permissionService, IEncryptionService encryptionService) { this._hospitalServices = HospitalServices; this._addressService = AddressService; this._treatmentRecordService = TreatmentRecordService; this._permissionService = permissionService; this._encryptionService = encryptionService; }
/// <summary> /// Construtor com dependency injection /// </summary> /// <param name="internamentoServices"></param> public InternamentoController( IInternamentoServices internamentoServices, IDoenteServices doenteServices, IHospitalServices hospitalServices, IUtilizadoresServices utilizadorServices ) { _internamentoServices = internamentoServices; _doenteServices = doenteServices; _hospitalServices = hospitalServices; _utilizadorServices = utilizadorServices; }
public AppointmentController(IReportService reportService, IHospitalServices HospitalServices, IAppointmentServices AppointmentServices, IPermissionService permissionService, IEncryptionService encryptionService) { this._reportService = reportService; this._hospitalServices = HospitalServices; this._appointmentServices = AppointmentServices; this._permissionService = permissionService; this._encryptionService = encryptionService; }
public void Setup() { #region Mocks - comportamentos ficticios para a lógica de negócio Mock <IRepository <Hospital> > hospitalRepository = new Mock <IRepository <Hospital> >(); //Comportamento para criar o Hospital hospitalRepository.Setup(x => x.CreateAsync( It.IsAny <Hospital>(), CancellationToken.None )).ReturnsAsync(new Hospital() { Nome = "S.Joao" }); hospitalRepository.Setup(x => x.UpdateAsync( It.IsAny <Hospital>(), CancellationToken.None )).ReturnsAsync(new Hospital() { Nome = "S.Joao" }); hospitalRepository.Setup(x => x.GetAsync( It.IsAny <int>(), CancellationToken.None )).ReturnsAsync(new Hospital() { Nome = "S.Joao" }); hospitalRepository.Setup(x => x.GetAllAsync( CancellationToken.None )).ReturnsAsync(new List <Hospital>() { new Hospital() { Nome = "S.Joao" } }); hospitalRepository.Setup(x => x.DeleteAsync( It.IsAny <Hospital>(), CancellationToken.None )); #endregion business = new HospitalServices(hospitalRepository.Object); }
public PatientController(ICompanyProfileService CompanyProfileService, IHospitalServices HospitalServices, INurseServices NurseServices, ITreatmentServices TreatmentServices, ITreatmentRecordServices TreatmentRecordsServices, IAppointmentServices AppointmentServices, IReportService ReportService, IEncryptionService encryptionService) { this._companyProfileService = CompanyProfileService; this._hospitalServices = HospitalServices; this._nurseServices = NurseServices; this._treatmentServices = TreatmentServices; this._treatmentRecordsServices = TreatmentRecordsServices; this._appointmentServices = AppointmentServices; this._reportService = ReportService; this._encryptionService = encryptionService; }
/// <summary> /// Contrutor com dependency injection /// </summary> /// <param name="hospitalServices"></param> public HospitalController(IHospitalServices hospitalServices) { _hospitalServices = hospitalServices; }