Пример #1
0
func (s *TeammateSuite) SetUpTest(c *C) {
	s.busManager = event.NewBusManager()
	s.busManager.Start()
	s.store = model.NewStore(s.busManager)
	s.owner = &TeammateOwner{event.NewIdentity("Team")}
	s.teammate = s.store.Teammates.Create(model.A{"Name": "Agent"}, s.owner)
}
Пример #2
0
func (s *ManagerSuite) SetUpTest(c *C) {
	s.busManager = event.NewBusManager()
	s.busManager.Start()
	s.store = model.NewStore(s.busManager)
	s.manager = dispatch.NewManager(s.busManager, s.store)
	s.team = s.store.Teams.Create(model.A{"Name": "James Bond"})
}
Пример #3
0
func (atd *ATD) init() {
	atd.busManager = event.NewBusManager()
	atd.busManager.Start()
	atd.store = model.NewStore(atd.busManager)
}
func (s *AcceptanceSuite) SetUpTest(c *C) {
	s.busManager = event.NewBusManager()
	s.busManager.Start()
	s.store = model.NewStore(s.busManager)
}
Пример #5
0
func (s *DistributorSuite) SetUpTest(c *C) {
	s.busManager = event.NewBusManager()
	s.busManager.Start()
	s.store = model.NewStore(s.busManager)
	s.team = s.store.Teams.Create(model.A{"Name": "James Bond"})
}
Пример #6
0
func (s *BusManagerSuite) SetUpTest(c *C) {
	s.busManager = event.NewBusManager()
	s.busManager.Start()
	s.identity = event.NewIdentity("Team")
}