Two buyer in contacts can have same email
Description
Two buyers with different name but same email can be added to the contact which does not make sense as in this case, emailing one would lead to emailing the other, agents would be unsure of which person he is contacting in this case, might lead to errors. The addressbook contact feature is flawed, its function fails to store people properly.
Steps to reproduce
-
after launching the app, type in command box:
buyer n/Bobby p/91124444 e/bobby123@gmail.com to add the first person
-
then type
buyer n/Alex p/91124444 e/bobby123@gmail.com to add the second person
Expected:
Error message: Alex should not be added as he should not have same email as Bobby
Actual:
New buyer added: Alex.
Phone number: 91124444 and Email: bobby123@gmail.com

Improvements
Ensure email as a factor to differentiate people in the contact book.
Two buyer in contacts can have same email
Description
Two buyers with different name but same email can be added to the contact which does not make sense as in this case, emailing one would lead to emailing the other, agents would be unsure of which person he is contacting in this case, might lead to errors. The addressbook contact feature is flawed, its function fails to store people properly.
Steps to reproduce
after launching the app, type in command box:
buyer n/Bobby p/91124444 e/bobby123@gmail.comto add the first personthen type
buyer n/Alex p/91124444 e/bobby123@gmail.comto add the second personExpected:
Error message: Alex should not be added as he should not have same email as Bobby
Actual:
New buyer added: Alex.
Phone number: 91124444 and Email: bobby123@gmail.com
Improvements
Ensure email as a factor to differentiate people in the contact book.