From 3a8630abcdee29287b3997ee232d250824122aef Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Mon, 15 Jul 2024 17:57:30 +0530 Subject: [PATCH] fix: load add_product_service mocking --- src/inventory/adapters/output/db/postgres/store_view.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/inventory/adapters/output/db/postgres/store_view.rs b/src/inventory/adapters/output/db/postgres/store_view.rs index 473f24a..3743734 100644 --- a/src/inventory/adapters/output/db/postgres/store_view.rs +++ b/src/inventory/adapters/output/db/postgres/store_view.rs @@ -210,11 +210,12 @@ mod tests { inventory::{ application::services::{ add_category_service::tests::mock_add_category_service, + add_product_service::tests::mock_add_product_service, add_store_service::AddStoreServiceBuilder, InventoryServicesBuilder, }, domain::{ - add_category_command::AddCategoryCommand, add_store_command::AddStoreCommand, - commands::InventoryCommand, + add_category_command::AddCategoryCommand, add_product_command::tests::get_command, + add_store_command::AddStoreCommand, commands::InventoryCommand, }, }, tests::bdd::IS_NEVER_CALLED, @@ -250,6 +251,7 @@ mod tests { IS_NEVER_CALLED, AddCategoryCommand::new("foo".into(), None, UUID.clone(), UUID.clone()).unwrap(), )) + .add_product(mock_add_product_service(IS_NEVER_CALLED, get_command())) .build() .unwrap();