Documentation ¶
Index ¶
- type FakePlaylistService
- func (f *FakePlaylistService) Create(context.Context, *playlist.CreatePlaylistCommand) (*playlist.Playlist, error)
- func (f *FakePlaylistService) Delete(ctx context.Context, cmd *playlist.DeletePlaylistCommand) error
- func (f *FakePlaylistService) Get(context.Context, *playlist.GetPlaylistByUidQuery) (*playlist.Playlist, error)
- func (f *FakePlaylistService) GetItems(context.Context, *playlist.GetPlaylistItemsByUidQuery) ([]playlist.PlaylistItem, error)
- func (f *FakePlaylistService) Search(context.Context, *playlist.GetPlaylistsQuery) (playlist.Playlists, error)
- func (f *FakePlaylistService) Update(context.Context, *playlist.UpdatePlaylistCommand) (*playlist.PlaylistDTO, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePlaylistService ¶
type FakePlaylistService struct { ExpectedPlaylist *playlist.Playlist ExpectedPlaylistDTO *playlist.PlaylistDTO ExpectedPlaylistItems []playlist.PlaylistItem ExpectedPlaylists playlist.Playlists ExpectedError error }
func NewPlaylistServiveFake ¶
func NewPlaylistServiveFake() *FakePlaylistService
func (*FakePlaylistService) Create ¶
func (f *FakePlaylistService) Create(context.Context, *playlist.CreatePlaylistCommand) (*playlist.Playlist, error)
func (*FakePlaylistService) Delete ¶
func (f *FakePlaylistService) Delete(ctx context.Context, cmd *playlist.DeletePlaylistCommand) error
func (*FakePlaylistService) Get ¶
func (f *FakePlaylistService) Get(context.Context, *playlist.GetPlaylistByUidQuery) (*playlist.Playlist, error)
func (*FakePlaylistService) GetItems ¶
func (f *FakePlaylistService) GetItems(context.Context, *playlist.GetPlaylistItemsByUidQuery) ([]playlist.PlaylistItem, error)
func (*FakePlaylistService) Search ¶
func (f *FakePlaylistService) Search(context.Context, *playlist.GetPlaylistsQuery) (playlist.Playlists, error)
func (*FakePlaylistService) Update ¶
func (f *FakePlaylistService) Update(context.Context, *playlist.UpdatePlaylistCommand) (*playlist.PlaylistDTO, error)
Click to show internal directories.
Click to hide internal directories.