bdd

package
v0.0.0-...-b9e6629 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 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 AggregateEvent

type AggregateEvent struct {
	AggregateType cqrs.AggregateType
	AggregateID   string
	Data          cqrs.Event
}

type TestCase

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

func New

func New(app cqrs.App) *TestCase

func (*TestCase) Given

func (c *TestCase) Given(events ...AggregateEvent) *TestCase

func (*TestCase) Then

func (c *TestCase) Then(expectedEvents ...cqrs.Event) func(*testing.T)

func (*TestCase) When

func (c *TestCase) When(command cqrs.Command) *TestCase

Jump to

Keyboard shortcuts

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