feat: owner manage employees #138

Open
realaravinth wants to merge 29 commits from owner-manage-employees into master
Showing only changes of commit 53cd452946 - Show all commits

View file

@ -412,4 +412,28 @@ mod tests {
.when(IdentityCommand::SetAdmin(cmd))
.then_expect_events(vec![expected]);
}
#[test]
fn test_user_aggregate_resend_verification_email() {
use crate::identity::application::services::resend_verification_email::{
command::*, service::*, *,
};
let cmd = ResendVerificationEmailCommand::get_cmd();
let expected = IdentityEvent::VerificationEmailResent;
let mut services = MockIdentityServicesInterface::new();
services
.expect_resend_verification_email()
.times(IS_CALLED_ONLY_ONCE.unwrap())
.return_const(ResendVerificationEmailService::mock_service(
IS_CALLED_ONLY_ONCE,
cmd.clone(),
));
UserTestFramework::with(Arc::new(services))
.given_no_previous_events()
.when(IdentityCommand::ResendVerificationEmail(cmd))
.then_expect_events(vec![expected]);
}
}