feat: add product against categories #34

Merged
realaravinth merged 10 commits from add-product into master 2024-07-15 18:21:13 +05:30
Showing only changes of commit 3a8630abcd - Show all commits

View file

@ -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();