示例#1
0
        public void Appointment_EditAppointment_DoesNot_ChangeUserAndWorkload()
        {
            string GUID          = "068397FA-A41E-443F-823D-E2A6585BD322";
            string WORKLOAD_GUID = "90cac674-18c0-4139-8aae-f9711bd2d5f4";

            ArdaTestMgr.Validate(this, $"AppointmentRepository.EditAppointment({GUID})",
                                 (list, ctx) => {
                AppointmentRepository appointment = new AppointmentRepository(ctx);

                var row = new AppointmentViewModel()
                {
                    _AppointmentComment        = "Updated appointment",
                    _AppointmentDate           = DateTime.Parse("2111-11-11"),
                    _AppointmentHoursDispensed = 100,
                    _AppointmentID             = Guid.Parse(GUID),
                    _AppointmentTE             = (decimal)123.45,
                    _AppointmentUserUniqueName = "*****@*****.**",
                    _AppointmentWorkloadWBID   = Guid.Parse(WORKLOAD_GUID)
                };

                appointment.EditAppointment(row);

                return(appointment.GetAppointmentByID(Guid.Parse(GUID)));
            });
        }
示例#2
0
        public void Appointment_EditAppointment()
        {
            string GUID          = "068397FA-A41E-443F-823D-E2A6585BD322";
            string WORKLOAD_GUID = "c1507019-1d97-4629-8015-c01bf02ce6ab";

            ArdaTestMgr.Validate(this, $"AppointmentRepository.EditAppointment({GUID})",
                                 (list, ctx) => {
                AppointmentRepository appointment = new AppointmentRepository(ctx);

                var row = new AppointmentViewModel()
                {
                    _AppointmentComment        = "Updated appointment",
                    _AppointmentDate           = DateTime.Parse("2111-11-11"),
                    _AppointmentHoursDispensed = 100,
                    _AppointmentID             = Guid.Parse(GUID),
                    _AppointmentTE             = (decimal)123.45,
                    _AppointmentUserUniqueName = "*****@*****.**",
                    _AppointmentWorkloadWBID   = Guid.Parse(WORKLOAD_GUID)
                };

                appointment.EditAppointment(row);

                return(appointment.GetAppointmentByID(Guid.Parse(GUID)));
            });
        }