package com.ruoyi.web.modules.booking.support;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import com.ruoyi.web.modules.diagnosis.support.ServiceAppointmentRules;

@DisplayName("MyAppointmentStatusTabRules")
class MyAppointmentStatusTabRulesTest
{

    @Test
    @DisplayName("可取消状态")
    void canCancel()
    {
        assertTrue(MyAppointmentStatusTabRules.canCancel(ServiceAppointmentRules.STATUS_PENDING));
        assertTrue(MyAppointmentStatusTabRules.canCancel(ServiceAppointmentRules.STATUS_CONFIRMED));
        assertTrue(MyAppointmentStatusTabRules.canCancel(ServiceAppointmentRules.STATUS_BOOKED));
        assertFalse(MyAppointmentStatusTabRules.canCancel(ServiceAppointmentRules.STATUS_COMPLETED));
        assertFalse(MyAppointmentStatusTabRules.canCancel(ServiceAppointmentRules.STATUS_CANCELLED));
    }
}
