application

package
v0.0.0-...-76fafce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Commands
	Queries
}

type Application

type Application struct {
	// contains filtered or unexported fields
}

type Commands

type Commands interface {
	CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error
	CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error
	InitiateShopping(ctx context.Context, cmd commands.InitiateShopping) error
	AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error
	CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error
}

type MockApp

type MockApp struct {
	mock.Mock
}

MockApp is an autogenerated mock type for the App type

func NewMockApp

func NewMockApp(t mockConstructorTestingTNewMockApp) *MockApp

NewMockApp creates a new instance of MockApp. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockApp) AssignShoppingList

func (_m *MockApp) AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error

AssignShoppingList provides a mock function with given fields: ctx, cmd

func (*MockApp) CancelShoppingList

func (_m *MockApp) CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error

CancelShoppingList provides a mock function with given fields: ctx, cmd

func (*MockApp) CompleteShoppingList

func (_m *MockApp) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error

CompleteShoppingList provides a mock function with given fields: ctx, cmd

func (*MockApp) CreateShoppingList

func (_m *MockApp) CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error

CreateShoppingList provides a mock function with given fields: ctx, cmd

func (*MockApp) GetShoppingList

func (_m *MockApp) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)

GetShoppingList provides a mock function with given fields: ctx, query

func (*MockApp) InitiateShopping

func (_m *MockApp) InitiateShopping(ctx context.Context, cmd commands.InitiateShopping) error

InitiateShopping provides a mock function with given fields: ctx, cmd

type MockCommands

type MockCommands struct {
	mock.Mock
}

MockCommands is an autogenerated mock type for the Commands type

func NewMockCommands

func NewMockCommands(t mockConstructorTestingTNewMockCommands) *MockCommands

NewMockCommands creates a new instance of MockCommands. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockCommands) AssignShoppingList

func (_m *MockCommands) AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error

AssignShoppingList provides a mock function with given fields: ctx, cmd

func (*MockCommands) CancelShoppingList

func (_m *MockCommands) CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error

CancelShoppingList provides a mock function with given fields: ctx, cmd

func (*MockCommands) CompleteShoppingList

func (_m *MockCommands) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error

CompleteShoppingList provides a mock function with given fields: ctx, cmd

func (*MockCommands) CreateShoppingList

func (_m *MockCommands) CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error

CreateShoppingList provides a mock function with given fields: ctx, cmd

func (*MockCommands) InitiateShopping

func (_m *MockCommands) InitiateShopping(ctx context.Context, cmd commands.InitiateShopping) error

InitiateShopping provides a mock function with given fields: ctx, cmd

type MockQueries

type MockQueries struct {
	mock.Mock
}

MockQueries is an autogenerated mock type for the Queries type

func NewMockQueries

func NewMockQueries(t mockConstructorTestingTNewMockQueries) *MockQueries

NewMockQueries creates a new instance of MockQueries. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockQueries) GetShoppingList

func (_m *MockQueries) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)

GetShoppingList provides a mock function with given fields: ctx, query

type Queries

type Queries interface {
	GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL