add service
All checks were successful
Deploy Smart Search Backend Test / deploy (push) Successful in 1m24s

This commit is contained in:
vallyenfail
2026-01-18 01:48:46 +03:00
parent b6f7323c58
commit 80e5f318a9
23 changed files with 2300 additions and 26 deletions

View File

@@ -29,6 +29,7 @@ type Suite struct {
authService service.AuthService
userRepo *mocks.UserRepositoryMock
sessionRepo *mocks.SessionRepositoryMock
inviteRepo *mocks.InviteRepositoryMock
crypto *crypto.Crypto
}
@@ -52,9 +53,10 @@ func (s *Suite) SetupTest() {
s.userRepo = mocks.NewUserRepositoryMock(ctrl)
s.sessionRepo = mocks.NewSessionRepositoryMock(ctrl)
s.inviteRepo = mocks.NewInviteRepositoryMock(ctrl)
s.crypto = crypto.NewCrypto(testCryptoSecret)
s.authService = service.NewAuthService(s.userRepo, s.sessionRepo, testJWTSecret, testCryptoSecret)
s.authService = service.NewAuthService(s.userRepo, s.sessionRepo, s.inviteRepo, nil, testJWTSecret, testCryptoSecret)
}
func createTestUser(password string) *model.User {