示例#1
0
 public PastAppointmentsViewComponent(
     IAppointmentsService appointmentsService,
     UserManager <ApplicationUser> userManager)
 {
     this.appointmentsService = appointmentsService;
     this.userManager         = userManager;
 }
示例#2
0
 public AppointmentController(IAppointmentsService appointmentsService, INotificationsService notificationsService, IHubContext <NotificationHub> hubContext, IOwnersService ownersService)
 {
     this.appointmentsService  = appointmentsService;
     this.notificationsService = notificationsService;
     this.hubContext           = hubContext;
     this.ownersService        = ownersService;
 }
 public AppointmentsController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IEmployeeServices employeeServices, IAppointmentsService appointmentsService, IUserService userService, IGaneConfigurationsHelper emailNotificationsHelper) : base(orderService, propertyService, accountServices, lookupServices)
 {
     _employeeServices         = employeeServices;
     _appointmentsService      = appointmentsService;
     _userService              = userService;
     _emailNotificationsHelper = emailNotificationsHelper;
 }
 public WorksOrdersController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IAppointmentsService appointmentsService,
                              IGaneConfigurationsHelper ganeConfigurationsHelper, IEmailServices emailServices, ITenantLocationServices tenantLocationservices, ITenantsServices tenantsServices)
     : base(orderService, propertyService, accountServices, lookupServices, appointmentsService, ganeConfigurationsHelper, emailServices, tenantLocationservices, tenantsServices)
 {
     _appointmentsService      = appointmentsService;
     _ganeConfigurationsHelper = ganeConfigurationsHelper;
 }
 public AppointmentsController(
     IAppointmentsService appointmentsService,
     ITrainersService trainersService)
 {
     this.appointmentsService = appointmentsService;
     this.trainersService     = trainersService;
 }
 public DashboardController(
     IAppointmentsService appointmentsService,
     IChatsService chatsService)
 {
     this.appointmentsService = appointmentsService;
     this.chatsService        = chatsService;
 }
 public AppointmentsController(
     IAppointmentsService appointmentsService,
     UserManager <ApplicationUser> userManager)
 {
     this.appointmentsService = appointmentsService;
     this.userManager         = userManager;
 }
 public SalesOrdersController(IProductServices productServices, ISalesOrderService salesOrderService, ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices,
                              IAppointmentsService appointmentsService, IGaneConfigurationsHelper configurationsHelper, IEmailServices emailServices, ITenantLocationServices tenantLocationservices, ITenantsServices tenantsServices)
     : base(orderService, propertyService, accountServices, lookupServices, appointmentsService, configurationsHelper, emailServices, tenantLocationservices, tenantsServices)
 {
     _salesServices   = orderService;
     _accountServices = accountServices;
     _productServices = productServices;
 }
示例#9
0
 public AppointmentsController(
     IAppointmentsService appointmentsService,
     IValidator <CreateAppointmentRequestDto> createAppointmentRequestDtoValidator,
     IMapper mapper) : base(mapper)
 {
     _appointmentService = appointmentsService;
     _createAppointmentRequestDtoValidator = createAppointmentRequestDtoValidator;
 }
示例#10
0
 public DashboardController(
     IAppointmentsService appointmentsService,
     IQuestionsService questionsService,
     UserManager <ApplicationUser> userManager)
 {
     this.appointmentsService = appointmentsService;
     this.questionsService    = questionsService;
     this.userManager         = userManager;
 }
 public ProceduresController(
     IProceduresService proceduresService,
     ICategoriesService categoriesService,
     IAppointmentsService appointmentsService)
 {
     this.proceduresService   = proceduresService;
     this.categoriesService   = categoriesService;
     this.appointmentsService = appointmentsService;
 }
 public InvoiceController(IProductServices productServices, ISalesOrderService salesOrderService, ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices,
                          IAppointmentsService appointmentsService, IGaneConfigurationsHelper configurationsHelper, IEmailServices emailServices, ITenantLocationServices tenantLocationservices, ITenantsServices tenantsServices, IProductPriceService priceService, IGaneConfigurationsHelper helper, IInvoiceService invoiceService)
     : base(orderService, propertyService, accountServices, lookupServices, appointmentsService, configurationsHelper, emailServices, tenantLocationservices, tenantsServices)
 {
     _priceService    = priceService;
     _helper          = helper;
     _productServices = productServices;
     _invoiceService  = invoiceService;
 }
示例#13
0
 public SalonsController(
     ISalonsService salonsService,
     ISalonServicesService salonServicesService,
     IAppointmentsService appointmentsService)
 {
     this.salonsService        = salonsService;
     this.salonServicesService = salonServicesService;
     this.appointmentsService  = appointmentsService;
 }
示例#14
0
 public BaseReportsController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IAppointmentsService appointmentsService,
                              IGaneConfigurationsHelper ganeConfigurationsHelper, IEmailServices emailServices, ITenantLocationServices tenantLocationservices, ITenantsServices tenantsServices)
     : base(orderService, propertyService, accountServices, lookupServices)
 {
     _appointmentsService     = appointmentsService;
     GaneConfigurationsHelper = ganeConfigurationsHelper;
     _emailServices           = emailServices;
     _tenantLocationservices  = tenantLocationservices;
     _tenantServices          = tenantsServices;
 }
 public AppointmentsController(
     IAppointmentsService appointmentsService,
     IUsersService usersService,
     ICategoriesService categoriesService,
     UserManager <ApplicationUser> userManager)
 {
     this.appointmentsService = appointmentsService;
     this.usersService        = usersService;
     this.categoriesService   = categoriesService;
     this.userManager         = userManager;
 }
示例#16
0
 public DashboardController(
     IUsersService usersService,
     IFacilitiesService facilitiesService,
     IExercisesService exercisesService,
     IMealsService mealsService,
     IAppointmentsService appointmentsService)
 {
     this.usersService        = usersService;
     this.facilitiesService   = facilitiesService;
     this.exercisesService    = exercisesService;
     this.mealsService        = mealsService;
     this.appointmentsService = appointmentsService;
 }
示例#17
0
 public AppointmentsBusinessService(
     IAppointmentsService appointmentsService,
     IOffersService offersService,
     IUserService userService,
     IMapper mapper,
     IBus publisher)
 {
     _appointmentsService = appointmentsService;
     _offersService       = offersService;
     _userService         = userService;
     _mapper    = mapper;
     _publisher = publisher;
 }
示例#18
0
 public AddModel(
     IDoctorsService doctorsService,
     IPatientsService patientsService,
     IAppointmentsService appointmentsService,
     IManipulationsService manipulationsService,
     UserManager <User> userManager)
 {
     this.doctorsService       = doctorsService;
     this.patientsService      = patientsService;
     this.appointmentsService  = appointmentsService;
     this.manipulationsService = manipulationsService;
     this.userManager          = userManager;
 }
示例#19
0
 public AppointmentsController(
     UserManager <ApplicationUser> userManager,
     IAppointmentsService appointmentsService,
     ISalonServicesService salonServicesService,
     IDateTimeParserService dateTimeParserService,
     ISalonsService salonsService)
 {
     this.userManager           = userManager;
     this.appointmentsService   = appointmentsService;
     this.salonServicesService  = salonServicesService;
     this.dateTimeParserService = dateTimeParserService;
     this.salonsService         = salonsService;
 }
        public AppointmentViewModel(IAppointmentsService appointmentService, IVetsService vetsService)
        {
            _appointmentsService = appointmentService;
            _vetsService         = vetsService;

            Vets        = new ObservableRangeCollection <Vet>();
            Pet         = new Pet();
            Appointment = new AppointmentRM {
                Date = DateTime.Now
            };

            GoToVetSelectionCommand = new Command(async() => await GoToVetSelection(),
                                                  () => !IsBusy);
        }
示例#21
0
 public PurchaseOrdersController(ITenantLocationServices tenantLocationServices, ICoreOrderService orderService, IStockTakeApiService stockTakeApiService, IPropertyService propertyService, IAccountServices accountServices,
                                 ILookupServices lookupServices, IAppointmentsService appointmentsService, IProductServices productServices, IProductLookupService productLookupService, IGaneConfigurationsHelper ganeConfigurationHelper,
                                 IEmailServices emailServices, ICommonDbServices commonDbServices, ITenantLocationServices tenantLocationservices, ISalesOrderService salesOrderService, ITenantsServices tenantsServices)
     : base(orderService, propertyService, accountServices, lookupServices, appointmentsService, ganeConfigurationHelper, emailServices, tenantLocationservices, tenantsServices)
 {
     StockTakeApiService     = stockTakeApiService;
     _productServices        = productServices;
     _productLookupService   = productLookupService;
     _orderService           = orderService;
     _tenantLocationServices = tenantLocationServices;
     _salesServices          = salesOrderService;
     _accountServices        = accountServices;
     _commonDbServices       = commonDbServices;
 }
示例#22
0
 public AppointmentsController(
     UserManager <ApplicationUser> userManager,
     IAppointmentsService appointmentsService,
     IPartnerServicesService partnerServicesService,
     IDateTimeParserService dateTimeParserService,
     IPartnersService partnersService,
     IEmailSender emailSender)
 {
     this.userManager            = userManager;
     this.appointmentsService    = appointmentsService;
     this.partnerServicesService = partnerServicesService;
     this.dateTimeParserService  = dateTimeParserService;
     this.partnersService        = partnersService;
     this.emailSender            = emailSender;
 }
示例#23
0
 public UsersController(
     IAppointmentsService appointmentsService,
     IAnswersService answersService,
     IUsersService usersService,
     ICategoriesService categoriesService,
     IProceduresService proceduresService,
     UserManager <ApplicationUser> userManager)
 {
     this.appointmentsService = appointmentsService;
     this.answersService      = answersService;
     this.usersService        = usersService;
     this.categoriesService   = categoriesService;
     this.proceduresService   = proceduresService;
     this.userManager         = userManager;
 }
示例#24
0
 public OrdersService(
     IDeletableEntityRepository <Order> ordersRepository,
     IAppointmentsService appointmentsService,
     IJobsService jobsService,
     IInvoicesService invoicesService,
     IServicesService servicesService,
     ITeamsService teamsService)
 {
     this.ordersRepository    = ordersRepository;
     this.appointmentsService = appointmentsService;
     this.appointmentsService = appointmentsService;
     this.jobsService         = jobsService;
     this.invoicesService     = invoicesService;
     this.servicesService     = servicesService;
     this.teamsService        = teamsService;
 }
 public PartnersController(
     ILogger <PartnersController> logger,
     UserManager <ApplicationUser> userManager,
     IPartnersService partnersService,
     ICategoriesService categoriesService,
     ICitiesService citiesService,
     IServicesService servicesService,
     IPartnerServicesService partnerServicesService,
     ICloudinaryService cloudinaryService,
     IAppointmentsService appointmentsService)
 {
     this.userManager            = userManager;
     this.partnersService        = partnersService;
     this.categoriesService      = categoriesService;
     this.partnerServicesService = partnerServicesService;
     this.appointmentsService    = appointmentsService;
     this.citiesService          = citiesService;
     this.servicesService        = servicesService;
     this.cloudinaryService      = cloudinaryService;
     this.logger = logger;
 }
 public AppointmentsToReviewViewComponent(IAppointmentsService appointmentsService)
 {
     this.appointmentsService = appointmentsService;
 }
示例#27
0
 public AppointmentsController(IAppointmentsService appointmentsService)
 {
     this.appointmentsService = appointmentsService;
 }
示例#28
0
 public AppointmentsModel(IAppointmentsService appointmentsService)
 {
     this.appointmentsService = appointmentsService;
 }
 public AppointmentDetailsViewComponent(IAppointmentsService appointmentsService)
 {
     this.appointmentsService = appointmentsService;
 }
示例#30
0
        public void Init()
        {
            _repository = new Mock <IAppointmentRepository>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new ServiceProfile());
            });

            _mapper = config.CreateMapper();

            _repository.Setup(t => t.GetById(It.IsAny <int>())).Returns(Task.FromResult(new Appointment
            {
                Id      = 1, Summary = "Test Appointment", Location = "Eastwood", StartDate = DateTime.Today,
                EndDate = DateTime.Today
            }));

            _repository.Setup(t => t.GetAll()).Returns((new Appointment[]
            {
                new Appointment()
                {
                    Id = 1, Summary = "Service for ABC0123VYW, Nigel ", Location = "Watford",
                    StartDate = new DateTime(2019, 6, 13), EndDate = new DateTime(2019, 6, 13)
                },
                new Appointment()
                {
                    Id = 2, Summary = "Service for BBC0123VYW, Bill ", Location = "Leeds",
                    StartDate = new DateTime(2019, 4, 7), EndDate = new DateTime(2019, 4, 7)
                },
                new Appointment()
                {
                    Id = 3, Summary = "Service for CBC0123VYW, Ted ", Location = "Nottingham",
                    StartDate = new DateTime(2019, 8, 12), EndDate = new DateTime(2019, 8, 12)
                },
                new Appointment()
                {
                    Id = 4, Summary = "Service for DBC0123VYW, Julian ", Location = "Grimbsy",
                    StartDate = new DateTime(2019, 4, 21), EndDate = new DateTime(2019, 4, 21)
                },
                new Appointment()
                {
                    Id = 5, Summary = "Service for EBC0123VYW, Andrew ", Location = "Kettering",
                    StartDate = new DateTime(2019, 2, 14), EndDate = new DateTime(2019, 2, 14)
                },
                new Appointment()
                {
                    Id = 6, Summary = "Service for FBC0123VYW, Tim ", Location = "Mansfield",
                    StartDate = new DateTime(2019, 3, 23), EndDate = new DateTime(2019, 3, 23)
                },
                new Appointment()
                {
                    Id = 7, Summary = "Service for GBC0123VYW, Peter ", Location = "Enfield",
                    StartDate = new DateTime(2019, 9, 27), EndDate = new DateTime(2019, 9, 27)
                },
                new Appointment()
                {
                    Id = 8, Summary = "Service for HBC0123VYW, Grant ", Location = "Windermere",
                    StartDate = new DateTime(2019, 10, 2), EndDate = new DateTime(2019, 10, 2)
                },
                new Appointment()
                {
                    Id = 9, Summary = "Service for IBC0123VYW, Henry ", Location = "Leek",
                    StartDate = new DateTime(2019, 6, 16), EndDate = new DateTime(2019, 6, 16)
                },
                new Appointment()
                {
                    Id = 10, Summary = "Service for JBC0123VYW, Jill ", Location = "Ashford",
                    StartDate = new DateTime(2019, 7, 3), EndDate = new DateTime(2019, 7, 3)
                },
            }).AsQueryable());

            _service = new AppointmentServices(_repository.Object, _mapper);
        }
 public AppointmentsController(IDoctorsService doctorsService, IAppointmentsService appointmentsService)
 {
     this.doctorsService = doctorsService;
     this.appointmentsService = appointmentsService;
 }