test_clients

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyClientFixture

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

func NewDummyClientFixture

func NewDummyClientFixture(client IDummyClient) *DummyClientFixture

func (*DummyClientFixture) TestCrudOperations

func (c *DummyClientFixture) TestCrudOperations(t *testing.T)

type DummyCommandableHttpClient

type DummyCommandableHttpClient struct {
	clients.CommandableHttpClient
}

func NewDummyCommandableHttpClient

func NewDummyCommandableHttpClient() *DummyCommandableHttpClient

func (*DummyCommandableHttpClient) CheckCorrelationId added in v1.0.14

func (c *DummyCommandableHttpClient) CheckCorrelationId(correlationId string) (result map[string]string, err error)

func (*DummyCommandableHttpClient) CheckErrorPropagation added in v1.4.3

func (c *DummyCommandableHttpClient) CheckErrorPropagation(correlationId string) error

func (*DummyCommandableHttpClient) CreateDummy

func (c *DummyCommandableHttpClient) CreateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)

func (*DummyCommandableHttpClient) DeleteDummy

func (c *DummyCommandableHttpClient) DeleteDummy(correlationId string, dummyId string) (result *tdata.Dummy, err error)

func (*DummyCommandableHttpClient) GetDummies

func (c *DummyCommandableHttpClient) GetDummies(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (result *tdata.DummyDataPage, err error)

func (*DummyCommandableHttpClient) GetDummyById

func (c *DummyCommandableHttpClient) GetDummyById(correlationId string, dummyId string) (result *tdata.Dummy, err error)

func (*DummyCommandableHttpClient) UpdateDummy

func (c *DummyCommandableHttpClient) UpdateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)

type DummyDirectClient

type DummyDirectClient struct {
	clients.DirectClient
	// contains filtered or unexported fields
}

func NewDummyDirectClient

func NewDummyDirectClient() *DummyDirectClient

func (*DummyDirectClient) CheckCorrelationId added in v1.0.14

func (c *DummyDirectClient) CheckCorrelationId(correlationId string) (result map[string]string, err error)

func (*DummyDirectClient) CreateDummy

func (c *DummyDirectClient) CreateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)

func (*DummyDirectClient) DeleteDummy

func (c *DummyDirectClient) DeleteDummy(correlationId string, dummyId string) (result *tdata.Dummy, err error)

func (*DummyDirectClient) GetDummies

func (c *DummyDirectClient) GetDummies(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (result *tdata.DummyDataPage, err error)

func (*DummyDirectClient) GetDummyById

func (c *DummyDirectClient) GetDummyById(correlationId string, dummyId string) (result *tdata.Dummy, err error)

func (*DummyDirectClient) SetReferences

func (c *DummyDirectClient) SetReferences(references cref.IReferences)

func (*DummyDirectClient) UpdateDummy

func (c *DummyDirectClient) UpdateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)

type DummyRestClient

type DummyRestClient struct {
	clients.RestClient
}

func NewDummyRestClient

func NewDummyRestClient() *DummyRestClient

func (*DummyRestClient) CheckCorrelationId added in v1.0.14

func (c *DummyRestClient) CheckCorrelationId(correlationId string) (result map[string]string, err error)

func (*DummyRestClient) CheckErrorPropagation added in v1.4.3

func (c *DummyRestClient) CheckErrorPropagation(correlationId string) error

func (*DummyRestClient) CreateDummy

func (c *DummyRestClient) CreateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)

func (*DummyRestClient) DeleteDummy

func (c *DummyRestClient) DeleteDummy(correlationId string, dummyId string) (result *tdata.Dummy, err error)

func (*DummyRestClient) GetDummies

func (c *DummyRestClient) GetDummies(correlationId string, filter *cdata.FilterParams,
	paging *cdata.PagingParams) (result *tdata.DummyDataPage, err error)

func (*DummyRestClient) GetDummyById

func (c *DummyRestClient) GetDummyById(correlationId string, dummyId string) (result *tdata.Dummy, err error)

func (*DummyRestClient) UpdateDummy

func (c *DummyRestClient) UpdateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)

type IDummyClient

type IDummyClient interface {
	GetDummies(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (result *tdata.DummyDataPage, err error)
	GetDummyById(correlationId string, dummyId string) (result *tdata.Dummy, err error)
	CreateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)
	UpdateDummy(correlationId string, dummy tdata.Dummy) (result *tdata.Dummy, err error)
	DeleteDummy(correlationId string, dummyId string) (result *tdata.Dummy, err error)

	CheckCorrelationId(correlationId string) (result map[string]string, err error)

	CheckErrorPropagation(correlationId string) error
}

Jump to

Keyboard shortcuts

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