go-pattern-examples/behavior/08_mediator/mediator_test.go

16 lines
170 B
Go
Raw Normal View History

2020-04-21 17:50:21 +03:00
package mediator
import "testing"
func TestMediator(t *testing.T) {
2020-04-27 18:36:39 +03:00
med := &mediator{}
2020-04-21 17:50:21 +03:00
2020-04-27 18:36:39 +03:00
landlord := &Landlord{}
2020-04-21 17:50:21 +03:00
2020-04-27 18:36:39 +03:00
med.publishRoom(landlord)
2020-04-21 17:50:21 +03:00
2020-04-27 18:36:39 +03:00
tenant := &Tenant{}
2020-04-21 17:50:21 +03:00
}