コード例 #1
0
        public VisitManager(HospitalContext db, DpApi client, ScheduleManager scheduleManager)
        {
            _db     = db;
            _client = client;

            _mappingRepo     = new DoctorMappingRepository(_db);
            _scheduleRepo    = new ScheduleRepository(_db);
            _visitRepository = new VisitRepository(_db);

            _scheduleManager = new ScheduleManager(_db, _client);
        }
コード例 #2
0
        public MappingController()
        {
            var db = new HospitalContext();

            client = new DpApi(AppSettings.ClientId, AppSettings.ClientSecret, (Locale)AppSettings.Locale);

            scheduleManager    = new ScheduleManager(db, client);
            repo               = new DoctorMappingRepository(db);
            addressRepo        = new ForeignAddressRepository(db);
            doctorFacilityRepo = new DoctorFacilityRepository(db);
            doctorServiceRepo  = new ForeignDoctorServiceRepository(db);
        }
コード例 #3
0
        public NotificationHandler(DpApi client, HospitalContext db = null)
        {
            _db = db ?? new HospitalContext();

            _visitRepo    = new VisitRepository(_db);
            _mappingRepo  = new DoctorMappingRepository(_db);
            _scheduleRepo = new ScheduleRepository(_db);

            _client = client;

            _scheduleManager = new ScheduleManager(_db, _client);
            _visitManager    = new VisitManager(_db, _client, _scheduleManager);
        }