package mocks import ( "context" "github.com/food-ai/backend/internal/domain/savedrecipe" ) // MockSavedRecipeRepository is a test double implementing savedrecipe.SavedRecipeRepository. type MockSavedRecipeRepository struct { SaveFn func(ctx context.Context, userID string, req savedrecipe.SaveRequest) (*savedrecipe.UserSavedRecipe, error) ListFn func(ctx context.Context, userID string) ([]*savedrecipe.UserSavedRecipe, error) GetByIDFn func(ctx context.Context, userID, id string) (*savedrecipe.UserSavedRecipe, error) DeleteFn func(ctx context.Context, userID, id string) error } func (m *MockSavedRecipeRepository) Save(ctx context.Context, userID string, req savedrecipe.SaveRequest) (*savedrecipe.UserSavedRecipe, error) { return m.SaveFn(ctx, userID, req) } func (m *MockSavedRecipeRepository) List(ctx context.Context, userID string) ([]*savedrecipe.UserSavedRecipe, error) { return m.ListFn(ctx, userID) } func (m *MockSavedRecipeRepository) GetByID(ctx context.Context, userID, id string) (*savedrecipe.UserSavedRecipe, error) { return m.GetByIDFn(ctx, userID, id) } func (m *MockSavedRecipeRepository) Delete(ctx context.Context, userID, id string) error { return m.DeleteFn(ctx, userID, id) }