Skip to content

Kata/collections/practice#48

Open
kiran1552 wants to merge 8 commits intoserenity-dojo:kata/collections/startfrom
kiran1552:kata/collections/practice
Open

Kata/collections/practice#48
kiran1552 wants to merge 8 commits intoserenity-dojo:kata/collections/startfrom
kiran1552:kata/collections/practice

Conversation

@kiran1552
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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