test: cascading in-memory store

This commit is contained in:
2026-10-25 22:19:24 +01:00
parent 51d92e08a7
commit 06eec2feae
72 changed files with 2439 additions and 1627 deletions

View File

@@ -2,7 +2,7 @@ use crate::test_support::generate_webhook_token_command;
use std::sync::Arc;
use domain::ports::WebhookTokenRepository;
use domain::testing::InMemoryWebhookTokenRepository;
use domain::testing::InMemoryStore;
use uuid::Uuid;
use crate::integrations::deps::GenerateWebhookTokenDeps;
@@ -10,7 +10,7 @@ use crate::integrations::generate_token;
#[tokio::test]
async fn generates_token_and_saves() {
let tokens: Arc<dyn WebhookTokenRepository> = InMemoryWebhookTokenRepository::new();
let tokens: Arc<dyn WebhookTokenRepository> = InMemoryStore::new();
let user_id = Uuid::new_v4();
let result = generate_token::execute(