Documentation ¶
Index ¶
- type FakePreferenceService
- func (f *FakePreferenceService) DeleteByUser(context.Context, int64) error
- func (f *FakePreferenceService) Get(ctx context.Context, query *pref.GetPreferenceQuery) (*pref.Preference, error)
- func (f *FakePreferenceService) GetDefaults() *pref.Preference
- func (f *FakePreferenceService) GetWithDefaults(ctx context.Context, query *pref.GetPreferenceWithDefaultsQuery) (*pref.Preference, error)
- func (f *FakePreferenceService) Patch(ctx context.Context, cmd *pref.PatchPreferenceCommand) error
- func (f *FakePreferenceService) Save(ctx context.Context, cmd *pref.SavePreferenceCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePreferenceService ¶
type FakePreferenceService struct { ExpectedPreference *pref.Preference ExpectedError error }
func NewPreferenceServiceFake ¶
func NewPreferenceServiceFake() *FakePreferenceService
func (*FakePreferenceService) DeleteByUser ¶
func (f *FakePreferenceService) DeleteByUser(context.Context, int64) error
func (*FakePreferenceService) Get ¶
func (f *FakePreferenceService) Get(ctx context.Context, query *pref.GetPreferenceQuery) (*pref.Preference, error)
func (*FakePreferenceService) GetDefaults ¶
func (f *FakePreferenceService) GetDefaults() *pref.Preference
func (*FakePreferenceService) GetWithDefaults ¶
func (f *FakePreferenceService) GetWithDefaults(ctx context.Context, query *pref.GetPreferenceWithDefaultsQuery) (*pref.Preference, error)
func (*FakePreferenceService) Patch ¶
func (f *FakePreferenceService) Patch(ctx context.Context, cmd *pref.PatchPreferenceCommand) error
func (*FakePreferenceService) Save ¶
func (f *FakePreferenceService) Save(ctx context.Context, cmd *pref.SavePreferenceCommand) error
Click to show internal directories.
Click to hide internal directories.