三个用例合二为一 [英] three use cases into one use case
问题描述
我有一个演员(管理员),他可以对其他用户帐户执行一些操作,例如创建帐户、编辑帐户和删除帐户帐户.我应该这样做吗:
I have one actor (admin), he can perform some actions over other user accounts such as creating the account, editing the account and deleting the account account. Should I do something like this:
-->UseCase:createAccount
/
o /
-|- /
| -----> UseCase:DeleteAccount
/ \ \
Admin \
\-->UseCase:EditAccount
还是我应该做一个案例?
Or should I do a single case?
o
-|-
| -----> UseCase:ManageAccounts
/ \
Admin
我问这个问题是因为我觉得如果我在一个用例中有三个操作,那么在用例描述中解释成功的案例就更难了.感谢您抽出宝贵时间.
I'm asking this question because I feel that is harder to explain the successful case in the use case description if I have three actions in a single use case. Thanks for your time.
推荐答案
您可以通过概括三个用例来抽象Manage Accounts
.
You can have the abstraction to Manage Accounts
by having it generalize the three use cases.
像这样:
您可以参考抽象用例,其中您需要将事物以紧凑的形式呈现,并参考更精确的子"用例,其中您想要显示细节.
You can refer to the abstract use case where you need things to be in compact form, and refer to the much more precise "sub" use cases where you want to show details.
这篇关于三个用例合二为一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!