public void Initialize() { InitializeCommunity(); var companyAlan = _individualAlan.CreateCompany(); companyAlan.Name = "Encom"; var companyFlynn = _individualFlynn.CreateCompany(); companyFlynn.Name = "Flynn's"; Synchronize(); _moderator = new ModeratorService( _domainModerator.CreateGame(_domainModerator.Companies)); Synchronize(); var gameAlan = companyAlan.Games.Single(); var gameFlynn = companyFlynn.Games.Single(); _alan = new CompanyGameService(companyAlan, gameAlan); _flynn = new CompanyGameService(companyFlynn, gameFlynn); _actuator = new Actuator(); _alan.RegisterWith(_actuator); _flynn.RegisterWith(_actuator); _actuator.Start(); }
public void Initialize() { InitializeCommunity(); var companyAlan = _individualAlan.CreateCompany(); companyAlan.Name = "Encom"; var companyFlynn = _individualFlynn.CreateCompany(); companyFlynn.Name = "Flynn's"; Synchronize(); _moderator = new ModeratorService( _domainModerator.CreateGame(_domainModerator.Companies)); Synchronize(); var gameAlan = companyAlan.Games.Single(); var gameFlynn = companyFlynn.Games.Single(); _alan = new CompanyGameService(companyAlan, gameAlan); _flynn = new CompanyGameService(companyFlynn, gameFlynn); _actuator = new Actuator(); _alan.RegisterWith(_actuator); _flynn.RegisterWith(_actuator); _actuator.Start(); }