Exemple #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)
}
Exemple #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"})
}
Exemple #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)
}
Exemple #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"})
}
Exemple #6
0
func (s *BusManagerSuite) SetUpTest(c *C) {
	s.busManager = event.NewBusManager()
	s.busManager.Start()
	s.identity = event.NewIdentity("Team")
}