Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisitFactory"/> class.
 /// </summary>
 /// <param name="visitRepository">The visit repository.</param>
 /// <param name="visitStatusRepository">The visit status repository.</param>
 public VisitFactory(
     IVisitRepository visitRepository,
     IVisitStatusRepository visitStatusRepository)
 {
     _visitRepository = visitRepository;
     _visitStatusRepository = visitStatusRepository;
 }
Ejemplo n.º 2
0
 public UnitOfWork(DBVETContext context)
 {
     _context           = context;
     Animal             = new AnimalRepository(context);
     AnimalRace         = new AnimalRaceRepository(context);
     AnimalSpecies      = new AnimalSpeciesRepository(context);
     Assortment         = new AssortmentRepository(context);
     AssortPrice        = new AssortPriceRepository(context);
     AssortType         = new AssortTypeRepository(context);
     Company            = new CompanyRepository(context);
     Customer           = new CustomerRepository(context);
     CustomerAnimal     = new CustomerAnimalRepository(context);
     Employee           = new EmployeesRepository(context);
     EmployeeGroup      = new EmployeeGroupRepository(context);
     EmployeeHoliday    = new EmployeeHolidayRepository(context);
     EmployeeOpenHour   = new EmployeeOpenHourRepository(context);
     EmployeeService    = new EmployeeServiceRepository(context);
     EquipemntType      = new EquipemntTypeRepository(context);
     Invoice            = new InvoiceRepository(context);
     InvoiceAssortment  = new InvoiceAssortmentRepository(context);
     InvoiceService     = new InvoiceServiceRepository(context);
     MethodPay          = new MethodPayRepository(context);
     Office             = new OfficeRepository(context);
     OfficeCustomer     = new OfficeCustomerRepository(context);
     OfficeHoliday      = new OfficeHolidayRepository(context);
     OfficeOpenHour     = new OfficeOpenHourRepository(context);
     Reservation        = new ReservationRepository(context);
     ReservationService = new ReservationServiceRepository(context);
     Servic             = new ServicRepository(context);
     ServiceType        = new ServiceTypeRepository(context);
     Tax   = new TaxRepository(context);
     Visit = new VisitRepository(context);
 }
        public ReportsController(IPatientRepository patientRepository, IVisitRepository visitRepository,
		                         IQueryRepository queryRepository)
        {
            this.patientRepository = patientRepository;
            this.visitRepository = visitRepository;
            this.queryRepository = queryRepository;
        }
Ejemplo n.º 4
0
 public UpdateVisitValidator(IVisitRepository visitRepository, IRestaurantRepository restaurantRepository,
                             IUserRepository userRepository)
 {
     this.visitRepository      = visitRepository;
     this.restaurantRepository = restaurantRepository;
     this.userRepository       = userRepository;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisitFactory"/> class.
 /// </summary>
 /// <param name="visitRepository">The visit repository.</param>
 /// <param name="visitStatusRepository">The visit status repository.</param>
 public VisitFactory(
     IVisitRepository visitRepository,
     IVisitStatusRepository visitStatusRepository)
 {
     _visitRepository       = visitRepository;
     _visitStatusRepository = visitStatusRepository;
 }
Ejemplo n.º 6
0
        public ShortUrlService(IUserRepository userRepository, IShortUrlRepository shortUrlRepository, IVisitRepository visitRepository, IBannedDomainRepository bannedDomainRepository, IReservedAliasRepository reservedAliasRepository, IUnitOfWork unitOfWork, IExternalContentService externalContentService, IThumbnail thumbnail, IBaseX baseX, IUrlResolver urlResolver, IEventAggregator eventAggregator, ISpamDetector[] spamDetectors)
        {
            Check.Argument.IsNotNull(userRepository, "userRepository");
            Check.Argument.IsNotNull(shortUrlRepository, "shortUrlRepository");
            Check.Argument.IsNotNull(visitRepository, "visitRepository");
            Check.Argument.IsNotNull(bannedDomainRepository, "bannedDomainRepository");
            Check.Argument.IsNotNull(reservedAliasRepository, "reservedAliasRepository");
            Check.Argument.IsNotNull(unitOfWork, "unitOfWork");
            Check.Argument.IsNotNull(externalContentService, "externalContentService");
            Check.Argument.IsNotNull(thumbnail, "thumbnail");
            Check.Argument.IsNotNull(baseX, "baseX");
            Check.Argument.IsNotNull(urlResolver, "urlResolver");
            Check.Argument.IsNotNull(eventAggregator, "eventAggregator");
            Check.Argument.IsNotNull(spamDetectors, "spamDetectors");

            this.userRepository          = userRepository;
            this.shortUrlRepository      = shortUrlRepository;
            this.visitRepository         = visitRepository;
            this.bannedDomainRepository  = bannedDomainRepository;
            this.reservedAliasRepository = reservedAliasRepository;
            this.unitOfWork             = unitOfWork;
            this.externalContentService = externalContentService;
            this.thumbnail       = thumbnail;
            this.baseX           = baseX;
            this.urlResolver     = urlResolver;
            this.eventAggregator = eventAggregator;
            this.spamDetectors   = spamDetectors;
        }
Ejemplo n.º 7
0
 public BuyModel(UserManager <App_User> userManager, Calc calc, IVisitRepository visitRepository, IShopItemData shopItemData)
 {
     this.userManager     = userManager;
     this.calc            = calc;
     this.visitRepository = visitRepository;
     this.shopItemData    = shopItemData;
 }
Ejemplo n.º 8
0
 public ReportsController(IPatientRepository patientRepository, IVisitRepository visitRepository,
                          IQueryRepository queryRepository)
 {
     this.patientRepository = patientRepository;
     this.visitRepository   = visitRepository;
     this.queryRepository   = queryRepository;
 }
Ejemplo n.º 9
0
 public CompleteVisitHandler(
     IBus bus,
     IVisitRepository visitRepository)
 {
     _bus             = bus;
     _visitRepository = visitRepository;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveVisitDtoRequestHandler"/> class.
 /// </summary>
 /// <param name="visitRepository">The visit repository.</param>
 /// <param name="staffRepository">The staff repository.</param>
 /// <param name="locationRepository">The location repository. </param>
 public SaveVisitDtoRequestHandler(
     IVisitRepository visitRepository, IStaffRepository staffRepository, ILocationRepository locationRepository)
 {
     _visitRepository    = visitRepository;
     _staffRepository    = staffRepository;
     _locationRepository = locationRepository;
 }
Ejemplo n.º 11
0
 public VisitSer(IUnitOfWork unitOfWork)
 {
     _unitOfWork             = unitOfWork;
     _visitRepository        = _unitOfWork.GetVisitRepo();
     _patientRepository      = _unitOfWork.GetPatientRepo();
     _visitServiceRepository = _unitOfWork.GetVisitServiceRepo();
 }
Ejemplo n.º 12
0
 public DentistAppService(IVisitRepository visitRepository, IPatientRepository patientRepository, IDentistRepository dentistRepository, IAddressRepository addressRepository, IMapper mapper)
 {
     _visitRepository   = visitRepository;
     _patientRepository = patientRepository;
     _dentistRepository = dentistRepository;
     _addressRepository = addressRepository;
     _mapper            = mapper;
 }
Ejemplo n.º 13
0
 public VisitsController(IVisitRepository repo,
                         IMapper mapper)
 {
     _visitRepo = repo
                  ?? throw new ArgumentNullException(nameof(repo));
     _mapper = mapper
               ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 14
0
 public VisitService(IVisitRepository visitRepository,
                     IRestaurantRepository restaurantRepository,
                     IUserRepository userRepository)
 {
     this.visitRepository      = visitRepository;
     this.restaurantRepository = restaurantRepository;
     this.userRepository       = userRepository;
 }
Ejemplo n.º 15
0
 public EvaluationsModel(IRepository <EconomicStudy> ReposStudies, IVisitRepository Visits, IRepository <Student> ReposStudents)
 {
     this.ReposStudies  = ReposStudies;
     this.ReposStudents = ReposStudents;
     this.Visits        = Visits;
     Study   = new EconomicStudy();
     visit   = new Visit();
     Studies = new List <EconomicStudy>();
 }
Ejemplo n.º 16
0
 public BookVisitHandler(
     IBus bus,
     IVisitRepository visitRepository,
     ILeadRepository leadRepository)
 {
     _bus             = bus;
     _visitRepository = visitRepository;
     _leadRepository  = leadRepository;
 }
Ejemplo n.º 17
0
        public void SetUp()
        {
            var connection = DbConnectionFactory.CreateTransient();

            _context         = new ApplicationDbContext(connection);
            _visitRepository = new VisitRepository(_context);
            _unitOfWork      = new UnitOfWork(_context);
            PrepareData();
        }
Ejemplo n.º 18
0
 public RegistroModel(
     IRepository <Tutor> repository,
     IAccoutRepository ReposAccount,
     IVisitRepository ReposVisit
     )
 {
     this.repository   = repository;
     this.ReposAccount = ReposAccount;
     this.ReposVisit   = ReposVisit;
 }
Ejemplo n.º 19
0
 public PatientsController(IPatientRepository repo, IPartnerRepository partnerrepo, IPatientReferenceRepository refrepo, IPatientDocumentRepository docrepo, IPatientVitalRepository PatientVital, IVisitRepository visit, IAppointmentRepository appointmentrepo)
 {
     _repo             = repo;
     partner_repo      = partnerrepo;
     ref_repo          = refrepo;
     doc_repo          = docrepo;
     PatientVital_repo = PatientVital;
     Visit_repo        = visit;
     Appointment_repo  = appointmentrepo;
 }
Ejemplo n.º 20
0
 public ProviderController(IProviderRepository providerRepository,
                           ISubscriptionRepository subscriptionRepository,
                           IVisitRepository visitRepository,
                           IMapper mapper)
 {
     _providerRepository     = providerRepository;
     _subscriptionRepository = subscriptionRepository;
     _visitRepository        = visitRepository;
     _mapper = mapper;
 }
        public AnalyticsController(IPatientRepository patientRepository, IVisitRepository visitRepository,
		                           IDemographicFormDataRepository dfdRepository,
		                           IHappinessFormDataRepository hfdRepository, IAdverseEventFormDataRepository aefdRepository,
		                           IQueryRepository queryRepository)
        {
            this.patientRepository = patientRepository;
            this.visitRepository = visitRepository;
            this.dfdRepository = dfdRepository;
            this.hfdRepository = hfdRepository;
            this.aefdRepository = aefdRepository;
            this.queryRepository = queryRepository;
        }
Ejemplo n.º 22
0
 public UnitOfWork(ICourseRepository courseRepository,
                   ITrainRepository trainRepository,
                   IReservationRepository reservationRepository,
                   IVisitRepository visitRepository,
                   IStationRepository stationRepository)
 {
     CourseRepository      = courseRepository;
     TrainRepository       = trainRepository;
     ReservationRepository = reservationRepository;
     VisitRepository       = visitRepository;
     StationRepository     = stationRepository;
 }
 public EstudioSocioeconomicoModel(
     IEvaluatorRepository evaluators,
     IEconomicStudyRepository repository,
     IVisitRepository ReposVisits)
 {
     this.evaluators  = evaluators;
     this.repository  = repository;
     this.ReposVisits = ReposVisits;
     Visits           = new List <Visit>();
     visit            = new Visit();
     Study            = new EconomicStudy();
 }
Ejemplo n.º 24
0
 public AnalyticsController(IPatientRepository patientRepository, IVisitRepository visitRepository,
                            IDemographicFormDataRepository dfdRepository,
                            IHappinessFormDataRepository hfdRepository, IAdverseEventFormDataRepository aefdRepository,
                            IQueryRepository queryRepository)
 {
     this.patientRepository = patientRepository;
     this.visitRepository   = visitRepository;
     this.dfdRepository     = dfdRepository;
     this.hfdRepository     = hfdRepository;
     this.aefdRepository    = aefdRepository;
     this.queryRepository   = queryRepository;
 }
 public VisitController(
     IBus bus, 
     ILeadRepository leadRepository,
     IVisitRepository visitRepository,
     IEmployeeService employeeService,
     IAppointmentService appointmentService)
 {
     _bus = bus;
     _leadRepository = leadRepository;
     _visitRepository = visitRepository;
     _employeeService = employeeService;
     _appointmentService = appointmentService;
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendToBillingRequestHandler"/> class.
 /// </summary>
 /// <param name="visitRepository">The visit repository.</param>
 /// <param name="codingContextRepository">The coding context repository.</param>
 /// <param name="patientAccountSynchronizationService">The patient account synchronization service.</param>
 /// <param name="encounterSynchronizationService">The encounter synchronization service.</param>
 /// <param name="serviceSynchronizationService">The service synchronization service.</param>
 public SendToBillingRequestHandler(
     IVisitRepository visitRepository,
     ICodingContextRepository codingContextRepository,
     IPatientAccountSynchronizationService patientAccountSynchronizationService,
     IEncounterSynchronizationService encounterSynchronizationService,
     IServiceSynchronizationService serviceSynchronizationService
     )
 {
     _visitRepository         = visitRepository;
     _codingContextRepository = codingContextRepository;
     _patientAccountSynchronizationService = patientAccountSynchronizationService;
     _encounterSynchronizationService      = encounterSynchronizationService;
     _serviceSynchronizationService        = serviceSynchronizationService;
 }
Ejemplo n.º 27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisitImportService"/> class.
 /// </summary>
 /// <param name="visitRepository">The visit repository.</param>
 /// <param name="codingContextRepository">The coding context repository.</param>
 /// <param name="patientAccountSynchronizationService">The patient account synchronization service.</param>
 /// <param name="encounterSynchronizationService">The encounter synchronization service.</param>
 /// <param name="serviceSynchronizationService">The service synchronization service.</param>
 public VisitImportService(
     IVisitRepository visitRepository,
     /*IBillingOfficeRepository billingOfficeRepository,*/
     ICodingContextRepository codingContextRepository,
     IPatientAccountSynchronizationService patientAccountSynchronizationService,
     IEncounterSynchronizationService encounterSynchronizationService,
     IServiceSynchronizationService serviceSynchronizationService)
 {
     _visitRepository = visitRepository;
     /*_billingOfficeRepository = billingOfficeRepository;*/
     _codingContextRepository = codingContextRepository;
     _patientAccountSynchronizationService = patientAccountSynchronizationService;
     _encounterSynchronizationService = encounterSynchronizationService;
     _serviceSynchronizationService = serviceSynchronizationService;
 }
Ejemplo n.º 28
0
        public ScoreService(
            EntityValidator entityValidator, 
            IScoreRepository scoreRepository, 
            IScoreDtoMapper scoreDtoMapper, 
            IVisitRepository visitRepository, 
            ILessonRepository lessonRepository,
            IVisitDtoMapper visitDtoMapper
            )
        {
            if (entityValidator == null)
            {
                throw new ArgumentNullException("entityValidator");
            }

            if (scoreRepository == null)
            {
                throw new ArgumentNullException("scoreRepository");
            }

            if (scoreDtoMapper == null)
            {
                throw new ArgumentNullException("scoreDtoMapper");
            }

            if (visitRepository == null)
            {
                throw new ArgumentNullException("visitRepository");
            }

            if (lessonRepository == null)
            {
                throw new ArgumentNullException("lessonRepository");
            }

            if (visitDtoMapper == null)
            {
                throw new ArgumentNullException("visitDtoMapper");
            }

            _entityValidator = entityValidator;
            _scoreRepository = scoreRepository;
            _scoreDtoMapper = scoreDtoMapper;
            _visitRepository = visitRepository;
            _lessonRepository = lessonRepository;
            _visitDtoMapper = visitDtoMapper;
        }
Ejemplo n.º 29
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="visitRepository">IVisitRepository dependency</param>
        /// <param name="securityHelper">ISecurityHelper dependency</param>
        /// <param name="employeeRepository">IEmployeeRepository dependency</param>
        public VisitsController(IVisitRepository visitRepository, ISecurityHelper securityHelper, IEmployeeRepository employeeRepository)
        {
            if (visitRepository == null)
            {
                throw new ArgumentNullException("visitRepository");
            }

            if (securityHelper == null)
            {
                throw new ArgumentNullException("securityHelper");
            }

            if (employeeRepository == null)
            {
                throw new ArgumentNullException("employeeRepository");
            }

            _visitRepository    = visitRepository;
            _securityHelper     = securityHelper;
            _employeeRepository = employeeRepository;
        }
Ejemplo n.º 30
0
        public VisitService(
            IVisitRepository visitRepository,
            ILessonRepository lessonRepository,
            IUserRepository userRepository,
            EntityValidator entityValidator,
            IVisitDtoMapper visitDtoMapper)
        {
            if (visitRepository == null)
            {
                throw new ArgumentNullException("visitRepository");
            }

            if (lessonRepository == null)
            {
                throw new ArgumentNullException("lessonRepository");
            }

            if (userRepository == null)
            {
                throw new ArgumentNullException("userRepository");
            }

            if (entityValidator == null)
            {
                throw new ArgumentNullException("entityValidator");
            }

            if (visitDtoMapper == null)
            {
                throw new ArgumentNullException("visitDtoMapper");
            }

            _visitRepository = visitRepository;
            _lessonRepository = lessonRepository;
            _userRepository = userRepository;
            _entityValidator = entityValidator;
            _visitDtoMapper = visitDtoMapper;
        }
Ejemplo n.º 31
0
        public AdministrativeService(IUserRepository userRepository, IShortUrlRepository shortUrlRepository, IVisitRepository visitRepository, IBannedIPAddressRepository bannedIPAddressRepository, IBannedDomainRepository bannedDomainRepository, IReservedAliasRepository reservedAliasRepository, IBadWordRepository barWordRepository, IUnitOfWork unitOfWork, IUrlResolver urlResolver, ICacheManager cacheManager)
        {
            Check.Argument.IsNotNull(userRepository, "userRepository");
            Check.Argument.IsNotNull(shortUrlRepository, "shortUrlRepository");
            Check.Argument.IsNotNull(visitRepository, "visitRepository");
            Check.Argument.IsNotNull(bannedIPAddressRepository, "bannedIPAddressRepository");
            Check.Argument.IsNotNull(bannedDomainRepository, "bannedDomainRepository");
            Check.Argument.IsNotNull(reservedAliasRepository, "reservedAliasRepository");
            Check.Argument.IsNotNull(barWordRepository, "barWordRepository");
            Check.Argument.IsNotNull(unitOfWork, "unitOfWork");
            Check.Argument.IsNotNull(urlResolver, "urlResolver");
            Check.Argument.IsNotNull(cacheManager, "cacheManager");

            this.userRepository            = userRepository;
            this.shortUrlRepository        = shortUrlRepository;
            this.visitRepository           = visitRepository;
            this.bannedIPAddressRepository = bannedIPAddressRepository;
            this.bannedDomainRepository    = bannedDomainRepository;
            this.reservedAliasRepository   = reservedAliasRepository;
            this.barWordRepository         = barWordRepository;
            this.unitOfWork   = unitOfWork;
            this.urlResolver  = urlResolver;
            this.cacheManager = cacheManager;
        }
Ejemplo n.º 32
0
 /// <summary>
 /// 构造器
 /// </summary>        
 /// <param name="tenantTypeId">租户类型Id</param>
 /// <param name="visitRepository"><see cref="IVisitRepository"/></param>
 public VisitService(string tenantTypeId, IVisitRepository visitRepository)
 {
     this.tenantTypeId = tenantTypeId;
     this.visitRepository = visitRepository;
 }
Ejemplo n.º 33
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivitySchedulerService"/> class.
 /// </summary>
 /// <param name="visitRepository">The visit repository.</param>
 public ActivitySchedulerService( IVisitRepository visitRepository )
 {
     _activityTypeFactoryDictionary = new Dictionary<string, Type> ();
     _visitRepository = visitRepository;
 }
 public ScheduleController(IVisitRepository visitRepository)
 {
     this.visitRepository = visitRepository;
 }
Ejemplo n.º 35
0
 public VisitsService(IVisitRepository visitRepository, IUserRepository userRepository)
 {
     _visitRepository = visitRepository;
     _userRepository = userRepository;
 }
 public VisitController(IVisitRepository visitRepository, IClinicalStudyDesignFactory clinicalStudyDesignFactory)
 {
     this.visitRepository = visitRepository;
     this.clinicalStudyDesignFactory = clinicalStudyDesignFactory;
 }
Ejemplo n.º 37
0
 public VisitService(IVisitRepository visitRepository, IMappingService mappingService)
 {
     this.visitRepository = visitRepository;
     this.mappingService = mappingService;
 }