public void Revoke_NotRevocablePrescription_DoesNotChangeStatus(Prescription <TState> prescription) { // Arrange var initialStatus = prescription.ToState().Status; // Act prescription.Revoke("Erreur"); // Assert var status = prescription.ToState().Status; status.Should().Be(initialStatus); }
public void Revoke_RevocablePrescription_MarksPrescriptionAsRevoked(Prescription <TState> prescription) { // Act prescription.Revoke("Erreur"); // Assert var status = prescription.ToState().Status; status.Should().Be(PrescriptionStatus.Revoked.Code); }