2024-09-07 08:55:00 +02:00
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
2024-10-23 11:45:54 +02:00
|
|
|
"context"
|
|
|
|
|
2024-09-07 08:55:00 +02:00
|
|
|
"git.grassecon.net/urdt/ussd/internal/models"
|
|
|
|
"github.com/stretchr/testify/mock"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockAccountService implements AccountServiceInterface for testing
|
|
|
|
type MockAccountService struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
2024-10-23 11:45:54 +02:00
|
|
|
func (m *MockAccountService) CreateAccount(ctx context.Context) (*models.AccountResponse, error) {
|
2024-09-07 08:55:00 +02:00
|
|
|
args := m.Called()
|
|
|
|
return args.Get(0).(*models.AccountResponse), args.Error(1)
|
|
|
|
}
|
|
|
|
|
2024-10-23 11:45:54 +02:00
|
|
|
func (m *MockAccountService) CheckBalance(publicKey string,ctx context.Context) (*models.BalanceResponse, error) {
|
2024-09-07 08:55:00 +02:00
|
|
|
args := m.Called(publicKey)
|
2024-10-14 22:17:57 +02:00
|
|
|
return args.Get(0).(*models.BalanceResponse), args.Error(1)
|
2024-09-07 08:55:00 +02:00
|
|
|
}
|
|
|
|
|
2024-10-23 11:45:54 +02:00
|
|
|
func (m *MockAccountService) CheckAccountStatus(trackingId string,ctx context.Context) (*models.TrackStatusResponse, error) {
|
2024-09-07 08:55:00 +02:00
|
|
|
args := m.Called(trackingId)
|
2024-10-14 22:17:57 +02:00
|
|
|
return args.Get(0).(*models.TrackStatusResponse), args.Error(1)
|
2024-09-07 08:55:00 +02:00
|
|
|
}
|