Documentation ¶
Overview ¶
Package command is a generated GoMock package.
Index ¶
- type CurrencyCommand
- type CurrencyCommandInterface
- type MockCurrencyCommandInterface
- func (m *MockCurrencyCommandInterface) Add(ctx context.Context, currency *model.CurrencyApplicationModel) (*model.CurrencyApplicationModel, error)
- func (m *MockCurrencyCommandInterface) EXPECT() *MockCurrencyCommandInterfaceMockRecorder
- func (m *MockCurrencyCommandInterface) MultipleAddOrUpdate(ctx context.Context, currencies []*model.CurrencyApplicationModel) ([]*model.CurrencyApplicationModel, error)
- type MockCurrencyCommandInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrencyCommand ¶
type CurrencyCommand struct {
// contains filtered or unexported fields
}
func (*CurrencyCommand) Add ¶
func (c *CurrencyCommand) Add(ctx context.Context, currency *model.CurrencyApplicationModel) (*model.CurrencyApplicationModel, error)
func (*CurrencyCommand) MultipleAddOrUpdate ¶
func (c *CurrencyCommand) MultipleAddOrUpdate(ctx context.Context, currencies []*model.CurrencyApplicationModel) ([]*model.CurrencyApplicationModel, error)
type CurrencyCommandInterface ¶
type CurrencyCommandInterface interface { Add(ctx context.Context, currency *model.CurrencyApplicationModel) (*model.CurrencyApplicationModel, error) MultipleAddOrUpdate(ctx context.Context, currencies []*model.CurrencyApplicationModel) ([]*model.CurrencyApplicationModel, error) }
func NewCurrencyCommand ¶
func NewCurrencyCommand( currencyService currency.CurrencyServiceInterface, ) CurrencyCommandInterface
type MockCurrencyCommandInterface ¶
type MockCurrencyCommandInterface struct {
// contains filtered or unexported fields
}
MockCurrencyCommandInterface is a mock of CurrencyCommandInterface interface.
func NewMockCurrencyCommandInterface ¶
func NewMockCurrencyCommandInterface(ctrl *gomock.Controller) *MockCurrencyCommandInterface
NewMockCurrencyCommandInterface creates a new mock instance.
func (*MockCurrencyCommandInterface) Add ¶
func (m *MockCurrencyCommandInterface) Add(ctx context.Context, currency *model.CurrencyApplicationModel) (*model.CurrencyApplicationModel, error)
Add mocks base method.
func (*MockCurrencyCommandInterface) EXPECT ¶
func (m *MockCurrencyCommandInterface) EXPECT() *MockCurrencyCommandInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCurrencyCommandInterface) MultipleAddOrUpdate ¶
func (m *MockCurrencyCommandInterface) MultipleAddOrUpdate(ctx context.Context, currencies []*model.CurrencyApplicationModel) ([]*model.CurrencyApplicationModel, error)
MultipleAddOrUpdate mocks base method.
type MockCurrencyCommandInterfaceMockRecorder ¶
type MockCurrencyCommandInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCurrencyCommandInterfaceMockRecorder is the mock recorder for MockCurrencyCommandInterface.
func (*MockCurrencyCommandInterfaceMockRecorder) Add ¶
func (mr *MockCurrencyCommandInterfaceMockRecorder) Add(ctx, currency interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockCurrencyCommandInterfaceMockRecorder) MultipleAddOrUpdate ¶
func (mr *MockCurrencyCommandInterfaceMockRecorder) MultipleAddOrUpdate(ctx, currencies interface{}) *gomock.Call
MultipleAddOrUpdate indicates an expected call of MultipleAddOrUpdate.
Click to show internal directories.
Click to hide internal directories.