-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kata/collections/practice #48
base: kata/collections/start
Are you sure you want to change the base?
Kata/collections/practice #48
Conversation
Kata/collections/start
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good solution, could be made better (or a better learning experience) using the strategy pattern.
pets.add(pet); | ||
confirmStatus=true; | ||
} | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always put curly brackets around statements.
return new ArrayList(pets); | ||
} | ||
|
||
public BookingResponse checkIn(Pet pet) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could refactor this nicely using the Strategy pattern.
@@ -1,54 +1,178 @@ | |||
package serenitylabs.tutorials.vetclinic.collections.katas; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good clean tests.
No description provided.