コード例 #1
0
ファイル: VisitFactory.cs プロジェクト: divyang4481/REM
 /// <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;
 }
コード例 #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);
 }
コード例 #3
0
        public ReportsController(IPatientRepository patientRepository, IVisitRepository visitRepository,
		                         IQueryRepository queryRepository)
        {
            this.patientRepository = patientRepository;
            this.visitRepository = visitRepository;
            this.queryRepository = queryRepository;
        }
コード例 #4
0
 public UpdateVisitValidator(IVisitRepository visitRepository, IRestaurantRepository restaurantRepository,
                             IUserRepository userRepository)
 {
     this.visitRepository      = visitRepository;
     this.restaurantRepository = restaurantRepository;
     this.userRepository       = userRepository;
 }
コード例 #5
0
ファイル: VisitFactory.cs プロジェクト: girish66/REM
 /// <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;
 }
コード例 #6
0
ファイル: ShortUrlService.cs プロジェクト: kingsor/shrinkr
        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;
        }
コード例 #7
0
ファイル: Buy.cshtml.cs プロジェクト: Martincvet/SmartHome
 public BuyModel(UserManager <App_User> userManager, Calc calc, IVisitRepository visitRepository, IShopItemData shopItemData)
 {
     this.userManager     = userManager;
     this.calc            = calc;
     this.visitRepository = visitRepository;
     this.shopItemData    = shopItemData;
 }
コード例 #8
0
 public ReportsController(IPatientRepository patientRepository, IVisitRepository visitRepository,
                          IQueryRepository queryRepository)
 {
     this.patientRepository = patientRepository;
     this.visitRepository   = visitRepository;
     this.queryRepository   = queryRepository;
 }
コード例 #9
0
 public CompleteVisitHandler(
     IBus bus,
     IVisitRepository visitRepository)
 {
     _bus             = bus;
     _visitRepository = visitRepository;
 }
コード例 #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;
 }
コード例 #11
0
 public VisitSer(IUnitOfWork unitOfWork)
 {
     _unitOfWork             = unitOfWork;
     _visitRepository        = _unitOfWork.GetVisitRepo();
     _patientRepository      = _unitOfWork.GetPatientRepo();
     _visitServiceRepository = _unitOfWork.GetVisitServiceRepo();
 }
コード例 #12
0
 public DentistAppService(IVisitRepository visitRepository, IPatientRepository patientRepository, IDentistRepository dentistRepository, IAddressRepository addressRepository, IMapper mapper)
 {
     _visitRepository   = visitRepository;
     _patientRepository = patientRepository;
     _dentistRepository = dentistRepository;
     _addressRepository = addressRepository;
     _mapper            = mapper;
 }
コード例 #13
0
 public VisitsController(IVisitRepository repo,
                         IMapper mapper)
 {
     _visitRepo = repo
                  ?? throw new ArgumentNullException(nameof(repo));
     _mapper = mapper
               ?? throw new ArgumentNullException(nameof(mapper));
 }
コード例 #14
0
ファイル: VisitService.cs プロジェクト: zbra-solutions/zfood
 public VisitService(IVisitRepository visitRepository,
                     IRestaurantRepository restaurantRepository,
                     IUserRepository userRepository)
 {
     this.visitRepository      = visitRepository;
     this.restaurantRepository = restaurantRepository;
     this.userRepository       = userRepository;
 }
コード例 #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>();
 }
コード例 #16
0
 public BookVisitHandler(
     IBus bus,
     IVisitRepository visitRepository,
     ILeadRepository leadRepository)
 {
     _bus             = bus;
     _visitRepository = visitRepository;
     _leadRepository  = leadRepository;
 }
コード例 #17
0
        public void SetUp()
        {
            var connection = DbConnectionFactory.CreateTransient();

            _context         = new ApplicationDbContext(connection);
            _visitRepository = new VisitRepository(_context);
            _unitOfWork      = new UnitOfWork(_context);
            PrepareData();
        }
コード例 #18
0
 public RegistroModel(
     IRepository <Tutor> repository,
     IAccoutRepository ReposAccount,
     IVisitRepository ReposVisit
     )
 {
     this.repository   = repository;
     this.ReposAccount = ReposAccount;
     this.ReposVisit   = ReposVisit;
 }
コード例 #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;
 }
コード例 #20
0
 public ProviderController(IProviderRepository providerRepository,
                           ISubscriptionRepository subscriptionRepository,
                           IVisitRepository visitRepository,
                           IMapper mapper)
 {
     _providerRepository     = providerRepository;
     _subscriptionRepository = subscriptionRepository;
     _visitRepository        = visitRepository;
     _mapper = mapper;
 }
コード例 #21
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;
        }
コード例 #22
0
ファイル: UnitOfWork.cs プロジェクト: slagiewski/RMS-API
 public UnitOfWork(ICourseRepository courseRepository,
                   ITrainRepository trainRepository,
                   IReservationRepository reservationRepository,
                   IVisitRepository visitRepository,
                   IStationRepository stationRepository)
 {
     CourseRepository      = courseRepository;
     TrainRepository       = trainRepository;
     ReservationRepository = reservationRepository;
     VisitRepository       = visitRepository;
     StationRepository     = stationRepository;
 }
コード例 #23
0
 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();
 }
コード例 #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;
 }
コード例 #25
0
 public VisitController(
     IBus bus, 
     ILeadRepository leadRepository,
     IVisitRepository visitRepository,
     IEmployeeService employeeService,
     IAppointmentService appointmentService)
 {
     _bus = bus;
     _leadRepository = leadRepository;
     _visitRepository = visitRepository;
     _employeeService = employeeService;
     _appointmentService = appointmentService;
 }
コード例 #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;
 }
コード例 #27
0
ファイル: VisitImportService.cs プロジェクト: divyang4481/REM
 /// <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;
 }
コード例 #28
0
ファイル: ScoreService.cs プロジェクト: WadeOne/EasyTeach
        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;
        }
コード例 #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;
        }
コード例 #30
0
ファイル: VisitService.cs プロジェクト: WadeOne/EasyTeach
        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;
        }
コード例 #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;
        }
コード例 #32
0
ファイル: VisitService.cs プロジェクト: hbulzy/SYS
 /// <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;
 }
コード例 #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;
 }
コード例 #34
0
 public ScheduleController(IVisitRepository visitRepository)
 {
     this.visitRepository = visitRepository;
 }
コード例 #35
0
ファイル: VisitsService.cs プロジェクト: mikaelharsjo/Yoyyin
 public VisitsService(IVisitRepository visitRepository, IUserRepository userRepository)
 {
     _visitRepository = visitRepository;
     _userRepository = userRepository;
 }
コード例 #36
0
 public VisitController(IVisitRepository visitRepository, IClinicalStudyDesignFactory clinicalStudyDesignFactory)
 {
     this.visitRepository = visitRepository;
     this.clinicalStudyDesignFactory = clinicalStudyDesignFactory;
 }
コード例 #37
0
 public VisitService(IVisitRepository visitRepository, IMappingService mappingService)
 {
     this.visitRepository = visitRepository;
     this.mappingService = mappingService;
 }