feat: rename mailer mock

This commit is contained in:
Aravinth Manivannan 2025-01-09 01:09:59 +05:30
parent 3d35e7db3a
commit 6b3770451e
Signed by: realaravinth
GPG key ID: F8F50389936984FF
6 changed files with 9 additions and 9 deletions

View file

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

View file

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

View file

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

View file

@ -4,7 +4,7 @@
use super::*;
struct SetUserAdminService;
pub struct SetUserAdminService;
#[async_trait::async_trait]
impl SetUserAdminUseCase for SetUserAdminService {

View file

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

View file

@ -4,7 +4,7 @@
use super::*;
struct UpdatePasswordService;
pub struct UpdatePasswordService;
#[async_trait::async_trait]
impl UpdatePasswordUseCase for UpdatePasswordService {