Documentation ¶
Index ¶
- func New(formHandler *mocks.FormHandler) application.FormHandlerFactory
- func NewFieldLevel(value interface{}, param string) *mocks.FieldLevel
- func NewStructLevel(value interface{}) *mocks.StructLevel
- type FormHandlerFactoryImpl
- func (f *FormHandlerFactoryImpl) CreateFormHandlerWithFormService(domain.FormService, ...string) domain.FormHandler
- func (f *FormHandlerFactoryImpl) CreateFormHandlerWithFormServices(domain.FormDataProvider, domain.FormDataDecoder, domain.FormDataValidator, ...) domain.FormHandler
- func (f *FormHandlerFactoryImpl) CreateSimpleFormHandler() domain.FormHandler
- func (f *FormHandlerFactoryImpl) GetFormHandlerBuilder() application.FormHandlerBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(formHandler *mocks.FormHandler) application.FormHandlerFactory
New returns faked implementation of FormHandlerFactory interface which should deliver mocked domain.FormHandler instance
func NewFieldLevel ¶
func NewFieldLevel(value interface{}, param string) *mocks.FieldLevel
NewFieldLevel is helper method to provide mocked instance of validator.FieldLevel interface
func NewStructLevel ¶
func NewStructLevel(value interface{}) *mocks.StructLevel
NewStructLevel is helper method to provide mocked instance of validator.StructLevel interface
Types ¶
type FormHandlerFactoryImpl ¶
type FormHandlerFactoryImpl struct {
// contains filtered or unexported fields
}
FormHandlerFactoryImpl defines faked implementation of FormHandlerFactory interface used for unit testing
func (*FormHandlerFactoryImpl) CreateFormHandlerWithFormService ¶
func (f *FormHandlerFactoryImpl) CreateFormHandlerWithFormService(domain.FormService, ...string) domain.FormHandler
CreateFormHandlerWithFormService returns mocked instance of domain.FormHandler interface
func (*FormHandlerFactoryImpl) CreateFormHandlerWithFormServices ¶
func (f *FormHandlerFactoryImpl) CreateFormHandlerWithFormServices(domain.FormDataProvider, domain.FormDataDecoder, domain.FormDataValidator, ...string) domain.FormHandler
CreateFormHandlerWithFormServices returns mocked instance of domain.FormHandler interface
func (*FormHandlerFactoryImpl) CreateSimpleFormHandler ¶
func (f *FormHandlerFactoryImpl) CreateSimpleFormHandler() domain.FormHandler
CreateSimpleFormHandler returns mocked instance of domain.FormHandler interface
func (*FormHandlerFactoryImpl) GetFormHandlerBuilder ¶
func (f *FormHandlerFactoryImpl) GetFormHandlerBuilder() application.FormHandlerBuilder
GetFormHandlerBuilder returns faked instance of FormHandlerBuilder interface