feat: initialize the server e2e tests

This commit is contained in:
Ahmed Bouhuolia
2024-12-15 00:49:10 +02:00
parent 05f4b49b58
commit 2ba31148ca
10 changed files with 43 additions and 278 deletions

View File

@@ -1,29 +1,4 @@
import { AuthForgetPasswordService } from './AuthForgetPassword.service';
import { AuthSendResetPasswordService } from './AuthResetPassword.service';
import { AuthSigninService } from './AuthSignin.service';
import { AuthSignupService } from './AuthSignup.service';
export class AuthApplication {
constructor(
private readonly authSigninService: AuthSigninService,
private readonly authSignupService: AuthSignupService,
private readonly authResetPasswordService: AuthSendResetPasswordService,
private readonly authForgetPasswordService: AuthForgetPasswordService,
) {}
async signin(email: string, password: string) {
return this.authSigninService.signIn(email, password);
}
async signup(data: any) {
return this.authSignupService.signup(data);
}
async resetPassword(data: any) {
return this.authResetPasswordService.resetPassword(data);
}
async forgetPassword(data: any) {
return this.authForgetPasswordService.execute(data);
}
}