예제 #1
0
 public static Appointment.Domain.Entities.Appointment CreateAppointment()
 {
     Appointment.Domain.Entities.Appointment app = new Appointment.Domain.Entities.Appointment
     {
         Id = 4,
         TypeOfAppointment = TypeOfAppointment.Examination,
         ShortDescription  = "standard appointment",
         Period            = new Common.Domain.ValueObjects.Period(new DateTime(2020, 12, 5, 8, 0, 0), new DateTime(2020, 12, 5, 8, 30, 0)),
         Urgent            = true,
         Deleted           = false,
         Finished          = true,
         RoomId            = 1003,
         PatientId         = "1",
         DoctorId          = "2406978890047"
     };
     return(app);
 }
 public static Appointment.Domain.Entities.Appointment CreateAppointment()
 {
     Appointment.Domain.Entities.Appointment app = new Appointment.Domain.Entities.Appointment
     {
         Id = 4,
         TypeOfAppointment = TypeOfAppointment.Examination,
         ShortDescription  = "standard appointment",
         Period            = new Period()
         {
             StartTime = new DateTime(2020, 12, 5, 8, 0, 0), EndTime = new DateTime(2020, 12, 5, 8, 30, 0)
         },
         Urgent   = true,
         Deleted  = false,
         Finished = true,
         RoomId   = 1003,
         DoctorId = "2406978890047",
     };
     return(app);
 }
        public static List <Appointment.Domain.Entities.Appointment> CreateLisfOfAppointments()
        {
            List <Appointment.Domain.Entities.Appointment> appointments = new List <Appointment.Domain.Entities.Appointment>();

            Appointment.Domain.Entities.Appointment app1 = new Appointment.Domain.Entities.Appointment
            {
                Id = 4,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period()
                {
                    StartTime = new DateTime(2020, 12, 5, 8, 0, 0), EndTime = new DateTime(2020, 12, 5, 8, 30, 0)
                },
                Urgent   = false,
                Deleted  = false,
                Finished = true,
                RoomId   = 1003,
                Doctor   = CreateDoctor(),
                DoctorId = "2406978890047",
            };
            Appointment.Domain.Entities.Appointment app2 = new Appointment.Domain.Entities.Appointment
            {
                Id = 6,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period()
                {
                    StartTime = new DateTime(2021, 12, 5, 8, 0, 0), EndTime = new DateTime(2021, 12, 5, 8, 30, 0)
                },
                Urgent   = false,
                Deleted  = false,
                Finished = true,
                RoomId   = 1003,
                Doctor   = CreateDoctor(),
                DoctorId = "2406978890047",
            };

            appointments.Add(app1);
            appointments.Add(app2);

            return(appointments);
        }
예제 #4
0
        public static List <Appointment.Domain.Entities.Appointment> CreateAppointments()
        {
            List <Appointment.Domain.Entities.Appointment> appointments = new List <Appointment.Domain.Entities.Appointment>();

            Appointment.Domain.Entities.Appointment ap1 = new Appointment.Domain.Entities.Appointment
            {
                Id = 1,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period(new DateTime(2020, 12, 5, 8, 0, 0), new DateTime(2020, 12, 5, 8, 30, 0)),
                Urgent            = true,
                Deleted           = false,
                Finished          = true,
                RoomId            = 1,
                DoctorId          = "2406978890047",
                PatientId         = "2406978890046",
                Patient           = CreatePatient()
            };

            Appointment.Domain.Entities.Appointment ap2 = new Appointment.Domain.Entities.Appointment
            {
                Id = 2,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period(new DateTime(2020, 12, 5, 8, 0, 0), new DateTime(2020, 12, 5, 8, 30, 0)),
                Urgent            = true,
                Deleted           = false,
                Finished          = true,
                RoomId            = 1,
                DoctorId          = "2406978890047",
                PatientId         = "2406978890046",
                Patient           = CreatePatient()
            };

            Appointment.Domain.Entities.Appointment ap3 = new Appointment.Domain.Entities.Appointment
            {
                Id = 3,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period(new DateTime(2020, 12, 5, 8, 0, 0), new DateTime(2020, 12, 5, 8, 30, 0)),
                Urgent            = true,
                Deleted           = false,
                Finished          = true,
                RoomId            = 1,
                DoctorId          = "2406978890047",
                PatientId         = "2406978890046",
                Patient           = CreatePatient()
            };
            Appointment.Domain.Entities.Appointment ap4 = new Appointment.Domain.Entities.Appointment
            {
                Id = 4,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period(new DateTime(2020, 12, 5, 8, 0, 0), new DateTime(2020, 12, 5, 8, 30, 0)),
                Urgent            = true,
                Deleted           = false,
                Finished          = true,
                RoomId            = 1,
                DoctorId          = "2406978890047",
                PatientId         = "2406978890046",
                Patient           = CreatePatient()
            };
            Appointment.Domain.Entities.Appointment ap5 = new Appointment.Domain.Entities.Appointment
            {
                Id = 5,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period(new DateTime(2020, 12, 8, 8, 0, 0), new DateTime(2020, 12, 8, 8, 30, 0)),
                Urgent            = true,
                Deleted           = false,
                Finished          = false,
                RoomId            = 1,
                DoctorId          = "2406978890047",
                PatientId         = "2406978890046",
                Patient           = CreatePatient()
            };
            Appointment.Domain.Entities.Appointment ap6 = new Appointment.Domain.Entities.Appointment
            {
                Id = 6,
                TypeOfAppointment = TypeOfAppointment.Examination,
                ShortDescription  = "standard appointment",
                Period            = new Period(new DateTime(2021, 12, 15, 8, 0, 0), new DateTime(2021, 12, 15, 8, 30, 0)),
                Urgent            = true,
                Deleted           = false,
                Finished          = false,
                RoomId            = 1,
                DoctorId          = "2406978890047",
                PatientId         = "2406978890046",
                Patient           = CreatePatient()
            };

            appointments.Add(ap1);
            appointments.Add(ap2);
            appointments.Add(ap3);
            appointments.Add(ap4);
            appointments.Add(ap5);
            appointments.Add(ap6);

            return(appointments);
        }