Exemple #1
0
        private ActionResult UpdateAppointmentStatus(UpdateAppointmentCommand command)
        {
            var handler = new UpdateAppointmentCommandHandler(Context);

            handler.Handle(command);

            return(RedirectToAction("OnProperty", new { id = command.PropertyId }));
        }
 public UpdateAppointmentCommandHandlerTests()
 {
     this.locationId = CommandArrangeHelper.GetLocationId(context, null, null);
     this.serviceId  = CommandArrangeHelper.GetServiceId(context, null);
     this.employeeId = CommandArrangeHelper.GetEmployeeId(context, locationId);
     CommandArrangeHelper.AddEmployeeService(context, serviceId, employeeId);
     this.appointmentId = CommandArrangeHelper.GetAppointmentId(context, serviceId, employeeId, null);
     this.sut           = new UpdateAppointmentCommandHandler(context);
 }