diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:49:10 +1200 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:49:10 +1200 |
commit | d24f813f3f2a05c112e803e4256b53535895fc98 (patch) | |
tree | 601e6ae9a1cd44bcfdcf91739a5ca36aedd827c9 /tests/mocks/CardPack_mock.h |
Diffstat (limited to 'tests/mocks/CardPack_mock.h')
-rw-r--r-- | tests/mocks/CardPack_mock.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/mocks/CardPack_mock.h b/tests/mocks/CardPack_mock.h new file mode 100644 index 0000000..50e6c13 --- /dev/null +++ b/tests/mocks/CardPack_mock.h @@ -0,0 +1,23 @@ +#ifndef CARDPACK_MOCK_H +#define CARDPACK_MOCK_H + +#include <QtCore> + +#include "../../src/dictionary/ICardPack.h" + +class CardPackMock: public ICardPack +{ +public: + void addStudyRecord(const QString cardId, const StudyRecord& studyRecord); + QList<StudyRecord> getStudyRecords(QString cardId) const; + StudyRecord getStudyRecord(QString cardId) const; + + QList<DicRecord*> getRecords() const; + const Field* getQuestionField() const; + QList<const Field*> getAnswerFields() const; + +private: + QMultiHash< QString, StudyRecord > studyRecords; +}; + +#endif |