Transaction methods
(ctx context.Context, txn *model.Transaction)
| 34 | // Transaction methods |
| 35 | |
| 36 | func (m *MockDataSource) RecordTransaction(ctx context.Context, txn *model.Transaction) (*model.Transaction, error) { |
| 37 | args := m.Called(ctx, txn) |
| 38 | return args.Get(0).(*model.Transaction), args.Error(1) |
| 39 | } |
| 40 | |
| 41 | func (m *MockDataSource) RecordTransactionWithBalances(ctx context.Context, txn *model.Transaction, sourceBalance, destinationBalance *model.Balance) (*model.Transaction, error) { |
| 42 | args := m.Called(ctx, txn, sourceBalance, destinationBalance) |