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) }
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"}) }
func (s *QueueSuite) SetUpTest(c *C) { s.store = model.NewStore(nil) s.owner = &QueueOwner{event.NewIdentity("Team")} }
func (s *SkillSuite) SetUpTest(c *C) { s.store = model.NewStore(nil) s.owner = &SkillOwner{event.NewIdentity("Team")} }
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) }
func (s *TeamSuite) SetUpTest(c *C) { s.store = model.NewStore(nil) s.team = s.store.Teams.Create(model.A{"Name": "Jon Snow & Egret"}) }
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"}) }
func (s *StoreSuite) SetUpTest(c *C) { s.store = model.NewStore(nil) }