Customer{
id: int
name: string,
age :int
}
ICustomerDao{
add(customer:Customer)
update(customer: Customer)
findById(int id) : Customer
}
ICustomerService{
add(name, age)
changeAge(int cid, int age)
findById(int cid);
}
- Add customer in store
- Change customer age
- find customer by id
- fetch all customers
validations on id, name ,age id can't be -ve, name cant be empty or null , age can't be smaller than 18