feat: rename mailer mock
This commit is contained in:
parent
3d35e7db3a
commit
6b3770451e
6 changed files with 9 additions and 9 deletions
|
@ -30,7 +30,7 @@ pub mod tests {
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
pub fn mock_account_validation_link_db_port(
|
||||
pub fn mock_account_validation_link_mailer_port(
|
||||
times: Option<usize>,
|
||||
) -> AccountValidationLinkOutMailerPortObj {
|
||||
let mut m = MockAccountValidationLinkOutMailerPort::new();
|
||||
|
|
|
@ -127,7 +127,7 @@ mod tests {
|
|||
IS_CALLED_ONLY_ONCE,
|
||||
RETURNS_RANDOM_STRING.into(),
|
||||
))
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_db_port(
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_mailer_port(
|
||||
IS_CALLED_ONLY_ONCE,
|
||||
))
|
||||
.get_uuid(mock_get_uuid(IS_CALLED_ONLY_ONCE))
|
||||
|
@ -172,7 +172,7 @@ mod tests {
|
|||
IS_NEVER_CALLED,
|
||||
RETURNS_RANDOM_STRING.into(),
|
||||
))
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_db_port(
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_mailer_port(
|
||||
IS_NEVER_CALLED,
|
||||
))
|
||||
.get_uuid(mock_get_uuid(IS_NEVER_CALLED))
|
||||
|
|
|
@ -77,7 +77,7 @@ mod tests {
|
|||
IS_CALLED_ONLY_ONCE,
|
||||
RETURNS_FALSE,
|
||||
))
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_db_port(
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_mailer_port(
|
||||
IS_CALLED_ONLY_ONCE,
|
||||
))
|
||||
.build()
|
||||
|
@ -105,7 +105,7 @@ mod tests {
|
|||
secret.into(),
|
||||
))
|
||||
.db_email_exists_adapter(mock_email_exists_db_port(IS_CALLED_ONLY_ONCE, RETURNS_TRUE))
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_db_port(
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_mailer_port(
|
||||
IS_NEVER_CALLED,
|
||||
))
|
||||
.build()
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
use super::*;
|
||||
|
||||
struct SetUserAdminService;
|
||||
pub struct SetUserAdminService;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl SetUserAdminUseCase for SetUserAdminService {
|
||||
|
|
|
@ -100,7 +100,7 @@ mod tests {
|
|||
IS_CALLED_ONLY_ONCE,
|
||||
RETURNS_RANDOM_STRING.into(),
|
||||
))
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_db_port(
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_mailer_port(
|
||||
IS_CALLED_ONLY_ONCE,
|
||||
))
|
||||
.build()
|
||||
|
@ -124,7 +124,7 @@ mod tests {
|
|||
IS_NEVER_CALLED,
|
||||
RETURNS_RANDOM_STRING.into(),
|
||||
))
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_db_port(
|
||||
.mailer_account_validation_link_adapter(mock_account_validation_link_mailer_port(
|
||||
IS_NEVER_CALLED,
|
||||
))
|
||||
.build()
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
use super::*;
|
||||
|
||||
struct UpdatePasswordService;
|
||||
pub struct UpdatePasswordService;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl UpdatePasswordUseCase for UpdatePasswordService {
|
||||
|
|
Loading…
Reference in a new issue