private async Task <Doctor> AddDoctor(int id)
        {
            var doctor = new DoctorBuilder().Id(id).Build();

            await _repository.AddAsync(doctor);

            return(doctor);
        }
        private async Task <ClinicManagement.Core.Aggregates.Doctor> AddDoctor(int id)
        {
            var doctor = new DoctorBuilder().Id(id).Build();

            await _repository.AddAsync <ClinicManagement.Core.Aggregates.Doctor, int>(doctor);

            return(doctor);
        }
Пример #3
0
        private async Task <FrontDesk.Core.Aggregates.Doctor> AddDoctor(int id)
        {
            var doctor = new DoctorBuilder().Id(id).Build();

            await _repository.AddAsync <FrontDesk.Core.Aggregates.Doctor, int>(doctor);

            return(doctor);
        }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            AppointmentBuilder.BuildAppointment(modelBuilder);
            DoctorBuilder.BuildDoctor(modelBuilder);
            ReviewBuilder.BuildReview(modelBuilder);
            PatientBuilder.BuildPatient(modelBuilder);

            base.OnModelCreating(modelBuilder);
        }
Пример #5
0
        public void KmehrConsultConfigViaConfig()
        {
            X509Certificate2 auth    = null; //TODO: select eID
            X509Certificate2 session = null; //TODO: select p12

            Binding sso   = DoctorBuilder.CreateBinding("79021802145", "19997341001", new Uri("https://wwwacc.ehealth.fgov.be/sts_1_1/SecureTokenService"));
            var     proxy = new GlobalMedicalFileConsultationPortTypeClient(sso, new EndpointAddress("https://services-acpt.ehealth.fgov.be/GlobalMedicalFileConsultation/v1"));
            //DoctorBuilder.ApplyBehaviors(proxy, auth, Path.GetTempPath(), TimeSpan.FromHours(12));
        }