Skip to content
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

Open
wants to merge 8 commits into
base: kata/collections/start
Choose a base branch
from

Conversation

kiran1552
Copy link

No description provided.

Copy link
Contributor

@wakaleo wakaleo left a 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
Copy link
Contributor

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) {
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good clean tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants