Skip to content

joemer-solid/FruitBasketStateMachineExercise

Repository files navigation

FruitBasketStateMachineExercise

simple console app using SOLID Principles

Implement a fruit basket, the requirements are as follows:

  1.  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

  1.  Allow removal of fruit from the basket
    

a. If a fruit is attempted to be removed which does not exist false should be returned

  1.  The basket should implement a method to retrieve all the fruits in the basket
    

a. This should be returned as a comma separated string

About

simple console app using SOLID Principles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages