fix: load add_product_service mocking
This commit is contained in:
parent
732f486aef
commit
3a8630abcd
1 changed files with 4 additions and 2 deletions
|
@ -210,11 +210,12 @@ mod tests {
|
||||||
inventory::{
|
inventory::{
|
||||||
application::services::{
|
application::services::{
|
||||||
add_category_service::tests::mock_add_category_service,
|
add_category_service::tests::mock_add_category_service,
|
||||||
|
add_product_service::tests::mock_add_product_service,
|
||||||
add_store_service::AddStoreServiceBuilder, InventoryServicesBuilder,
|
add_store_service::AddStoreServiceBuilder, InventoryServicesBuilder,
|
||||||
},
|
},
|
||||||
domain::{
|
domain::{
|
||||||
add_category_command::AddCategoryCommand, add_store_command::AddStoreCommand,
|
add_category_command::AddCategoryCommand, add_product_command::tests::get_command,
|
||||||
commands::InventoryCommand,
|
add_store_command::AddStoreCommand, commands::InventoryCommand,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tests::bdd::IS_NEVER_CALLED,
|
tests::bdd::IS_NEVER_CALLED,
|
||||||
|
@ -250,6 +251,7 @@ mod tests {
|
||||||
IS_NEVER_CALLED,
|
IS_NEVER_CALLED,
|
||||||
AddCategoryCommand::new("foo".into(), None, UUID.clone(), UUID.clone()).unwrap(),
|
AddCategoryCommand::new("foo".into(), None, UUID.clone(), UUID.clone()).unwrap(),
|
||||||
))
|
))
|
||||||
|
.add_product(mock_add_product_service(IS_NEVER_CALLED, get_command()))
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue