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

Introduce receptionist and staff tests #138

Open
wants to merge 4 commits into
base: arch_01
Choose a base branch
from
Open

Introduce receptionist and staff tests #138

wants to merge 4 commits into from

Conversation

fbtom
Copy link
Contributor

@fbtom fbtom commented Jun 14, 2024

In this pull request:
Receptionist class was introduced.
Doctor Factory was created.
Doctor Mock was created.
Receptionist Mock was created.
Staff tests were introduced with getters for Doctor and Receptionist in Staff class.

@ziobron ziobron added the Standard The user has Standard course option label Jun 14, 2024
modules/backend/clinic/staff/Staff.cpp Outdated Show resolved Hide resolved
modules/backend/clinic/staff/Staff.hpp Outdated Show resolved Hide resolved
namespace receptionist
{

class ReceptionistMock : public iReceptionist
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, that Mocks should reside in "tests" module, not in backend. It does not need to be included in production code in my opinion, as it is part of "testing" world.

The best option in my opinion is to create folder "Mocks" or "utils/mocks" in "tests" module

Copy link
Contributor Author

@fbtom fbtom Jun 14, 2024

Choose a reason for hiding this comment

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

I thought about it also but wasn't sure. In different projects I followed this approach, so I added it here also. Will move it to utils/mocks under the test module (will need help haha :) )

modules/backend/clinic/staff/Staff.cpp Outdated Show resolved Hide resolved
@ziobron
Copy link
Contributor

ziobron commented Jun 14, 2024

Thanks @mBialczak for Code Review.
🏅 1 XP granted

@ziobron
Copy link
Contributor

ziobron commented Jun 15, 2024

Thanks @mBialczak for Code Review.
🏅 1 XP granted

1 similar comment
@ziobron
Copy link
Contributor

ziobron commented Jun 15, 2024

Thanks @mBialczak for Code Review.
🏅 1 XP granted

@ziobron ziobron closed this Jun 23, 2024
@fbtom fbtom reopened this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-closed Standard The user has Standard course option
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants