Multiple implementations of the same back-end application. The aim is to provide quick, side-by-side comparisons of different technologies (languages, frameworks, libraries) while preserving consistent business logic across all implementations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
769 B

#pragma once
#include "application/interfaces/IItemRepository.h"
#include <trompeloeil.hpp>
namespace test {
using nxl::autostore::domain::Item;
using nxl::autostore::domain::User;
using nxl::autostore::domain::ItemExpirationSpec;
class MockItemRepository : public nxl::autostore::application::IItemRepository
{
public:
MAKE_MOCK1(save, Item::Id_t(const Item&), override);
MAKE_MOCK1(findById, std::optional<Item>(Item::Id_t), override);
MAKE_MOCK1(findByOwner, std::vector<Item>(User::Id_t), override);
MAKE_MOCK1(findWhere, std::vector<Item>(std::function<bool(const Item&)>),
override);
MAKE_MOCK1(findWhere, std::vector<Item>(const ItemExpirationSpec&), override);
MAKE_MOCK1(remove, void(Item::Id_t), override);
};
} // namespace test