From 9172d1fc4f5e8a7f78d315adbe5510a1d6687caf Mon Sep 17 00:00:00 2001 From: scarletblanks Date: Thu, 5 Oct 2023 21:27:28 +0800 Subject: [PATCH 1/2] DG updated for 'delete' and 'set' feature --- docs/DeveloperGuide.md | 45 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 685223ef26b..5ff15e4d833 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -407,13 +407,52 @@ Use case ends. * 2a. The list is empty. - Use case ends. + * 2a1. AddressBook displays a message indicating that the list is empty. + + Use case ends. * 3a. The given index is invalid. - * 3a1. AddressBook shows an error message. + * 3a1. AddressBook shows an error message indicating that the specified index is invalid. + + Use case resumes at step 3. + +* 4a. Deletion encounters an error + + * 4a1. AddressBook displays an error message indicating that the deletion process failed. + + Use case ends. + +**Use case: Set a person's status** + +**MSS** + +1. User requests to list persons +2. AddressBook shows a list of persons +3. User requests to set the status of a specific person in the list +4. AddressBook sets the status of that person in the list + + Use case ends. + +**Extensions** + +* 2a. The list is empty. + + * 2a1. AddressBook displays a message indicating that the list is empty. + + Use case ends. + +* 3a. The given index is invalid. + + * 3a1. AddressBook shows an error message indicating that the specified index is invalid. + + Use case resumes at step 3. + +* 3b. The given status is invalid. + + * 3a1. AddressBook shows an error message indicating that the specified status is invalid. - Use case resumes at step 2. + Use case resumes at step 3. *{More to be added}* From 0978dae9f5df4de3de9b16b824208961c59d3458 Mon Sep 17 00:00:00 2001 From: Goh Peng Tat Date: Thu, 5 Oct 2023 23:09:51 +0800 Subject: [PATCH 2/2] Update DeveloperGuide.md --- docs/DeveloperGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 5ff15e4d833..56d2a9828d7 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -450,7 +450,7 @@ Use case ends. * 3b. The given status is invalid. - * 3a1. AddressBook shows an error message indicating that the specified status is invalid. + * 3b1. AddressBook shows an error message indicating that the specified status is invalid. Use case resumes at step 3.