public FamilyIntakeController(IFamilyIntakeService familyIntakeService, UserManager <ApplicationUser> userManager, IAppointmentFormService appointmentFormService, IAppointmentService appointmentService)
 {
     _familyIntakeService    = familyIntakeService;
     _userManager            = userManager;
     _appointmentFormService = appointmentFormService;
     _appointmentService     = appointmentService;
 }
 public AppointmentViewMode(IAppointmentService appointmentService, IHttpContextAccessor httpContextAccessor)
 {
     _appointmentService  = appointmentService;
     _httpContextAccessor = httpContextAccessor;
     loginUserId          = _httpContextAccessor.HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier);
     role = _httpContextAccessor.HttpContext.User.FindFirstValue(ClaimTypes.Role);
 }
 public HospitalController(IPersonService userService, IHospitalService hospitalService, IAppointmentService appointmentService, ICommonUtils commonUtils)
 {
     _userService        = userService;
     _hospitalService    = hospitalService;
     _appointmentService = appointmentService;
     _commonUtils        = commonUtils;
 }
Example #4
0
        public TurnsController(ITurnsService turnsService,
                               IDoctorServiceManager doctorServiceManager,
                               IAppointmentService appointmentService,
                               IServiceSupplyService serviceSupplyService,
                               IServicesService servicesService,
                               IBlockedMobileService blockedMobileService,
                               IIPAsManager iPAsManager,
                               IPersonService userService,
                               IAppointmentsManager appointmentsManager,
                               INotificationService notificationService,
                               IOfferRepository offerRepository)
        {
            _turnsService         = turnsService;
            _doctorServiceManager = doctorServiceManager;
            _userService          = userService;
            _appointmentsManager  = appointmentsManager;
            _notificationService  = notificationService;
            _servicesService      = servicesService;
            _blockedMobileService = blockedMobileService;
            _iPAsManager          = iPAsManager;
            _appointmentService   = appointmentService;
            _serviceSupplyService = serviceSupplyService;
            _offerRepository      = offerRepository;

            logger = LogManager.GetCurrentClassLogger();
        }
Example #5
0
 public CalendarEntryService(HospitalCalendarDbContextFactory contextFactory, IRenovationService renovationService,
                             IAppointmentService appointmentService, ISurgeryService surgeryService) : base(contextFactory)
 {
     _renovationService  = renovationService;
     _appointmentService = appointmentService;
     _surgeryService     = surgeryService;
 }
 public BookingController(IMapper mapper, IAppointmentService appointmentService, IOutletService outletService, ICustomerService customerService)
 {
     _mapper             = mapper;
     _appointmentService = appointmentService;
     _customerService    = customerService;
     _outletService      = outletService;
 }
 public AppointmentController(
     IBus bus,
     IAppointmentService appointmentService)
 {
     _bus = bus;
     _appointmentService = appointmentService;
 }
 public WidgetsFullCalendarController(IWorkContext workContext,
                                      IStoreContext storeContext,
                                      IStoreService storeService,
                                      ISettingService settingService,
                                      IOrderService orderService,
                                      ILogger logger,
                                      ICategoryService categoryService,
                                      IProductAttributeParser productAttributeParser,
                                      ILocalizationService localizationService,
                                      IGenericAttributeService genericAttributeService,
                                      IAppointmentService appointmentService,
                                      IDateTimeHelper datetimeHelper)
 {
     this._workContext             = workContext;
     this._storeContext            = storeContext;
     this._storeService            = storeService;
     this._settingService          = settingService;
     this._orderService            = orderService;
     this._logger                  = logger;
     this._categoryService         = categoryService;
     this._productAttributeParser  = productAttributeParser;
     this._localizationService     = localizationService;
     this._genericAttributeService = genericAttributeService;
     this._appointmentService      = appointmentService;
     this._dateTimeHelper          = datetimeHelper;
 }
Example #9
0
 public PassengerSummaryComponent(ILogger <PassengerSummaryComponent> logger, IPassengerService passengerService, IAppointmentService appointmentService, IMapper mapper)
 {
     _logger             = logger;
     _appointmentService = appointmentService;
     _passengerService   = passengerService;
     _mapper             = mapper;
 }
Example #10
0
        public new void SetUp()
        {
            _AppointeeRepo = MockRepository.GenerateMock <ICommonRepository <Appointee> >();

            Appointee apt1 = new Appointee()
            {
                ApteeID   = 1,
                FirstName = "test1",
                LastName  = "demo1"
            };

            Appointee apt2 = new Appointee()
            {
                ApteeID   = 2,
                FirstName = "test2",
                LastName  = "demo2"
            };

            _AppointeeRepo.Expect(x => x.FindAll()).Return(new List <Appointee>()
            {
                apt1, apt2
            }.AsEnumerable());

            _AppointmentService = new AppointmentService();
            _AppointmentService.AppointeeRepo = _AppointeeRepo;
        }
Example #11
0
 public AppointmentApiController(IAppointmentService appointmentService, IHttpContextAccessor httpContextAccessor)
 {
     _httpContextAccessor = httpContextAccessor;                                                             // To get a generic user
     _appointmentService  = appointmentService;
     loginUserId          = _httpContextAccessor.HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier); // Populates an user Id
     role = _httpContextAccessor.HttpContext.User.FindFirstValue(ClaimTypes.Role);
 }
        public void ReminderBefore24HourForAppoinment(IAppointmentService _apoinmentService, DateTime today)
        {
            try
            {
                var appointments = _apoinmentService.Get().Include(e => e.clinician_).Include(e => e.client_).Where(e => e.start_date > today.AddHours(-24) &&
                                                                                                                    e.client_ != null && e.status == 169).ToList();
                Logs($"{DateTime.Now} [ReminderBefore24HourForAppoinment Service called] count => {appointments?.Count()}" + Environment.NewLine);
                foreach (var appointment in appointments)
                {
                    var appointment_details = GetAppoinmentDetails(appointment);

                    _emailSender.SendEmailAsync(appointment.clinician_.email, "SUBJECT FOR CLinician - MySpace MyTime",
                                                $"Hi " + appointment.clinician_.last_name + " " + appointment.clinician_.first_name + ", You have appoinment in next 1 hour.<br/><strong>Appointment details </strong><br/>" + appointment_details + "<strong>Member : </strong>" + appointment.client_.last_name + " " + appointment.client_.first_name);


                    _emailSender.SendEmailAsync(appointment.client_.email, "SUBJECT for CLient - MySpace MyTime",
                                                $"Hi " + appointment.client_.last_name + " " + appointment.client_.first_name + ", You have appoinment in next 24 hour.<br/><strong>Appointment details </strong><br/>" + appointment_details + "<strong>Provider : </strong>" + appointment.clinician_.last_name + " " + appointment.clinician_.first_name);

                    //appointment.client_.is_24_hour_reminder_mail_send = true;
                    //_apoinmentService.Update(appointment);
                }
            }
            catch (Exception ex)
            {
                var date  = DateTime.Now;
                var error = $"*************************** Start {date} ***********************************" + Environment.NewLine;
                error += "Message :" + ex.Message + Environment.NewLine;
                error += "Inner Exception :" + ex.InnerException?.Message + Environment.NewLine;
                error += "Stack Trace :" + ex.StackTrace + Environment.NewLine;
                error += $"*************************** End {date} ***********************************" + Environment.NewLine;
                Logs(error);
            }
        }
 public AppointmentController(
     IUserService userService,
     IAppointmentService appointmentService)
 {
     _userService        = userService;
     _appointmentService = appointmentService;
 }
 public RatingsController(UserManager <ApplicationUser> userManager, IRatingService ratingService, IProfileService profileService, IAppointmentService appointmentService)
 {
     _userManager        = userManager;
     _ratingService      = ratingService;
     _profileService     = profileService;
     _appointmentService = appointmentService;
 }
 public AppointmentController(IDoctorService doctorService,
                              IAppointmentService scheduleService)
 {
     _doctorService   = doctorService;
     _scheduleService = scheduleService;
     _context         = new DPTSDbContext();
 }
 public AppointmentController(IProfileService profileService, IAppointmentService appointmentService, IAccountService accountService, IAdService adService)
 {
     this.appointmentService = appointmentService;
     this.accountService     = accountService;
     this.adService          = adService;
     this.profileService     = profileService;
 }
Example #17
0
 public AppointmentController(IPatientService _patientService, IDoctorService _doctorService,
                              IAppointmentService _appointmentService)
 {
     patientService     = _patientService;
     doctorService      = _doctorService;
     appointmentService = _appointmentService;
 }
Example #18
0
 public ReportService(ICalendarEntryService calendarEntryService, IAppointmentService appointmentService, IRoomService roomService, IDoctorService doctorService)
 {
     _calendarEntryService = calendarEntryService;
     _roomService          = roomService;
     _doctorService        = doctorService;
     _appointmentService   = appointmentService;
 }
Example #19
0
 public AppointmentController(IPetService petService, IUserService userService, IAppointmentService appointmentService, IAvailableAppointmentService availableAppointmentService)
 {
     _userService                 = userService;
     _petService                  = petService;
     _appointmentService          = appointmentService;
     _availableAppointmentService = availableAppointmentService;
 }
Example #20
0
 public AppointmentApiController(IAppointmentService service, IHttpContextAccessor accessor)
 {
     _service    = service;
     _accessor   = accessor;
     loginUserId = _accessor.HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier);
     role        = _accessor.HttpContext.User.FindFirstValue(ClaimTypes.Role);
 }
 public AppointmentController(ILogger <AppointmentController> logger, IPassengerService passengerService, IAppointmentService appointmentService, IMapper mapper)
 {
     _logger             = logger;
     _appointmentService = appointmentService;
     _passengerService   = passengerService;
     _mapper             = mapper;
 }
 public API_appointmentController(IAppointmentService aS, IHttpContextAccessor httpCA)
 {
     _aS          = aS;
     _httpCA      = httpCA;
     _loginUserId = _httpCA.HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier);
     _role        = _httpCA.HttpContext.User.FindFirstValue(ClaimTypes.Role);
 }
 public AppointmentsController(IPetService pet, IOwnerService owner, IAppointmentService appointment)
 {
     _jsonResponse = new JsonResponse();
     _pet          = pet;
     _owner        = owner;
     _appointment  = appointment;
 }
 public AppointmentController(
     IBus bus,
     IAppointmentService appointmentService)
 {
     _bus = bus;
     _appointmentService = appointmentService;
 }
Example #25
0
 public CalendarWeekViewModel(IWindsorContainer container, IAppointmentService service)
 {
     this.container = container;
     this.appointmentService = service;
     Days = new BindableCollection<DayTileViewModel>();
     BuildUp();
 }
        public void ReminderBefore5MinForAppoinment(IAppointmentService _apoinmentService, DateTime today)
        {
            try
            {
                Logs($"{DateTime.Now} [ReminderBefore5MinForAppoinment Service called]" + Environment.NewLine);

                var appointments = _apoinmentService.Get().Include(e => e.clinician_).Include(e => e.client_).Where(e => e.start_date > today && e.start_date <= today.AddMinutes(5) && e.client_ != null).ToList();
                Logs($"{DateTime.Now} [ReminderBefore5MinForAppoinment Service called] count => {appointments?.Count()}" + Environment.NewLine);
                foreach (var appointment in appointments)
                {
                    var appointment_details = GetAppoinmentDetails(appointment);

                    _emailSender.SendEmailAsync(appointment.client_.email, "You have appoinment in next 5 minutes - MySpace MyTime",
                                                $"Hi " + appointment.client_.last_name + " " + appointment.client_.first_name + ", You have appoinment in next 5 minutes.<br/><strong>Appointment details </strong><br/>" + appointment_details + "<strong>Provider : </strong>" + appointment.clinician_.last_name + " " + appointment.clinician_.first_name);
                }
            }
            catch (Exception ex)
            {
                var date  = DateTime.Now;
                var error = $"*************************** Start {date} ***********************************" + Environment.NewLine;
                error += "Message :" + ex.Message + Environment.NewLine;
                error += "Inner Exception :" + ex.InnerException?.Message + Environment.NewLine;
                error += "Stack Trace :" + ex.StackTrace + Environment.NewLine;
                error += $"*************************** End {date} ***********************************" + Environment.NewLine;
                Logs(error);
            }
        }
Example #27
0
 public StudentController(IMapper mapper, IDepartmentService departmentService, IFacultyService facultytService, IScheduleService scheduletService, IAppointmentService appointmentService)
     : base(mapper)
 {
     this._departmentService  = departmentService;
     this._facultytService    = facultytService;
     this._scheduletService   = scheduletService;
     this._appointmentService = appointmentService;
 }
 public AppointmentsController(IAppointmentService appointmentService, IEmployeeService employeeService, IProcedureService procedureService, IScheduleService scheduleService, IUserService userService)
 {
     this.appointmentService = appointmentService;
     this.employeeService    = employeeService;
     this.procedureService   = procedureService;
     this.scheduleService    = scheduleService;
     this.userService        = userService;
 }
Example #29
0
 public ScheduleManager(BanobatDbContext dbContext, IDoctorServiceManager doctorServiceManager, IServiceSupplyManager serviceSupplyManager, IScheduleService scheduleService, IAppointmentService appointmentService)
 {
     _dbContext            = dbContext;
     _doctorServiceManager = doctorServiceManager;
     _serviceSupplyManager = serviceSupplyManager;
     _scheduleService      = scheduleService;
     _appointmentService   = appointmentService;
 }
 public AppointmentController(IAppointmentService appointmentService, IUserService userService,
                              IPriceService priceService, IPatientService patientService)
 {
     _appointmentService = appointmentService;
     _userService        = userService;
     _priceService       = priceService;
     _patientService     = patientService;
 }
Example #31
0
 public AppointmentController(ApplicationDbContext _context, IHttpContextAccessor httpContextAccessor, IAppointmentService appointmentService)
 {
     context = _context;
     _httpContextAccessor = httpContextAccessor;
     _appointmentService  = appointmentService;
     loginUserId          = _httpContextAccessor.HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier);
     role = _httpContextAccessor.HttpContext.User.FindFirstValue(ClaimTypes.Role);
 }
 public AppointmentServiceTests()
 {
     _fixture = new Fixture().Customize(new AutoMoqCustomization());
     _fixture.Behaviors.Remove(new ThrowingRecursionBehavior());
     _fixture.Behaviors.Add(new OmitOnRecursionBehavior());
     _repositoryWrapper  = _fixture.Freeze <Mock <IRepositoryWrapper> >();
     _appointmentService = _fixture.Create <AppointmentService>();
 }
        public QuoteController(IQuoteService quoteService, IAppointmentService appointmentService, ISearchService searchService)
        {
            Check.If(quoteService).IsNotNull();
            Check.If(appointmentService).IsNotNull();
            Check.If(searchService).IsNotNull();

            _quoteService = quoteService;
            _appointmentService = appointmentService;
            _searchService = searchService;
        }
 public HttpResponseMessage GetMyAppointments(HttpRequestMessage request)
 {
     return GetHttpResponse(request, () =>
     {
         var user = User.Identity.Name;
         _appointmentService = new AppointmentClient();
         var appointments = _appointmentService.MyAppointmentHistory(user);
         var response = request.CreateResponse<AppointmentDetails[]>(HttpStatusCode.OK, appointments);
         return response;
     });
 }
Example #35
0
        public DayViewModel(IWindsorContainer container,
            IAppointmentService service)
        {
            this.container = container;
            this.service = service;
            this.currentDayDate = DateTime.Today;
            DisplayName = "Day Schedule";
            TimeLine = new BindableCollection<HourPartViewModel>();

            BuildupTimeLine();
        }
 public HolidayController(
     IBus bus,
     IEmployeeRepository employeeRepository,
     IHolidayValidator holidayValidator,
     IAppointmentService appointmentService)
 {
     _bus = bus;
     _employeeRepository = employeeRepository;
     _holidayValidator = holidayValidator;
     _appointmentService = appointmentService;
 }
 public HttpResponseMessage FixAppointment(HttpRequestMessage request, [FromBody]BookAppointment appointmentModel)
 {
     return GetHttpResponse(request, () =>
     {
         HttpResponseMessage response = null;
         var user = User.Identity.Name;
         _appointmentService=new AppointmentClient();
         var appointment = _appointmentService.BookAppointment(user,appointmentModel.AppointmentDate,appointmentModel.Doctor);
         response = request.CreateResponse<Appointment>(HttpStatusCode.OK, appointment);
         return response;
     });
 }
 public VisitController(
     IBus bus, 
     ILeadRepository leadRepository,
     IVisitRepository visitRepository,
     IEmployeeService employeeService,
     IAppointmentService appointmentService)
 {
     _bus = bus;
     _leadRepository = leadRepository;
     _visitRepository = visitRepository;
     _employeeService = employeeService;
     _appointmentService = appointmentService;
 }
        public static QuoteController GetInitialisedQuoteController(IQuoteService quoteService, IAppointmentService appointmentService, ISearchService searchService)
        {
            var controller = new QuoteController(quoteService, appointmentService, searchService)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri("http://localhost/api/") },
                Configuration = new HttpConfiguration()
            };

            controller.Configuration.MapHttpAttributeRoutes();
            controller.Configuration.EnsureInitialized();

            return controller;
        }
Example #40
0
        public EventEditorViewModel(IMessageBoxService service,
            IAppointmentService appointmentService)
        {
            messageBox = service;
            this.appointmentService = appointmentService;

            this.Title = string.Empty;
            this.technicalId = Guid.Empty;

            StartTimeViewModel = new DateTimeViewModel();
            EndTimeViewModel = new DateTimeViewModel();
            EndTimeViewModel.SelectedHour = StartTimeViewModel.SelectedHour + 1;

            LoadDaySchedule();
            NotifyOfPropertyChange(() => CanDelete);
        }
        public AppointmentController(IAppointmentService appointmentService)
        {
            Check.If(appointmentService).IsNotNull();

            _appointmentService = appointmentService;
        }
 public AppointmentsController(IAppointmentService appointmentService)
 {
     _appointmentService = appointmentService;
 }
 public EstheticiansController(IEstheticianService estheticians, IAppointmentService appointments)
 {
     _estheticians = estheticians;
     _appointments = appointments;
 }
 public AppointmentsController(IAppointmentService appointmentService, INotificationService notificationService, IHostingEnvironment env)
 {
     _appointmentService = appointmentService;
     _notificationService = notificationService;
     _env = env;
 }