-
Notifications
You must be signed in to change notification settings - Fork 1k
Object Oriented and Testable Approach
Jonathan Zhang edited this page Dec 12, 2018
·
4 revisions
Consider use cases around the application user.
- List all users
- Search users
- View complete profile of a user
- Create a new user
- Modify or delete a user
Now, we need to come up with a data structure for users with built-in methods to fit the above use cases.
{
"username":"patrix",
"officeName":"Newyork",
"officeId":36,
"firstname":"Patrick New",
"lastname":"Asare-Frimpong",
"email":"[email protected]",
"roles":[{"Rolename":"Admin","RoleId":1},
{"Rolename":"SuperUser","RoleId":6},
{"Rolename":"LoanOfficer","RoleId":3}
}
{
"username":"patrix",
"officeId":36,
"firstname":"Patrick New",
"lastname":"Asare-Frimpong",
"email":"[email protected]",
"roles":[1,6,3]
}
- Gitter Chat: https://gitter.im/openMF/community-app
- Developer Mailing List: https://sourceforge.net/projects/mifos/lists/mifos-developer