simple console app using SOLID Principles
Implement a fruit basket, the requirements are as follows:
-
Allow addition of fruit to the basket
a. The basket should allow only one entry for a given fruit
b. If fruit is added successfully to the basket it should return true otherwise false
-
Allow removal of fruit from the basket
a. If a fruit is attempted to be removed which does not exist false should be returned
-
The basket should implement a method to retrieve all the fruits in the basket
a. This should be returned as a comma separated string