예제 #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 (s *QueueSuite) SetUpTest(c *C) {
	s.store = model.NewStore(nil)
	s.owner = &QueueOwner{event.NewIdentity("Team")}
}
예제 #4
0
func (s *SkillSuite) SetUpTest(c *C) {
	s.store = model.NewStore(nil)
	s.owner = &SkillOwner{event.NewIdentity("Team")}
}
예제 #5
0
파일: atd.go 프로젝트: mathieul/goatd
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)
}
예제 #7
0
파일: team_test.go 프로젝트: mathieul/goatd
func (s *TeamSuite) SetUpTest(c *C) {
	s.store = model.NewStore(nil)
	s.team = s.store.Teams.Create(model.A{"Name": "Jon Snow & Egret"})
}
예제 #8
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"})
}
예제 #9
0
func (s *StoreSuite) SetUpTest(c *C) {
	s.store = model.NewStore(nil)
}