public ShoutboxController(IShoutboxMessageRepository shoutboxMessageRepository, IPopupService popupService, IShoutBoxService shoutBoxService, IShoutboxChannelRepository shoutboxChannelRepository) : base(popupService) { this.shoutboxMessageRepository = shoutboxMessageRepository; this.shoutBoxService = shoutBoxService; this.shoutboxChannelRepository = shoutboxChannelRepository; }
public static void Game_Start() { IConfigurationRepository configurationRepository = DependencyResolver.Current.GetService <IConfigurationRepository>(); ICurrencyRepository currencyRepository = DependencyResolver.Current.GetService <ICurrencyRepository>(); ICitizenService citizenService = DependencyResolver.Current.GetService <ICitizenService>(); IShoutBoxService shoutBoxService = DependencyResolver.Current.GetService <IShoutBoxService>(); var startService = DependencyResolver.Current.GetService <IStartService>(); startService.OnStart(); GameHelper.Init(configurationRepository, currencyRepository, citizenService); ConfigurationHelper.Init(configurationRepository.GetConfiguration()); shoutBoxService.MergeSameNameChannels(); }
public StartService(IShoutBoxService shoutBoxService, IHospitalService hospitalService, IEntityRepository entityRepository) { this.shoutBoxService = Attach(shoutBoxService); this.hospitalService = Attach(hospitalService); this.entityRepository = entityRepository; }
public ShoutBoxServiceTests() { shoutBoxService = new ShoutBoxService(shoutboxMessageRepository.Object, Mock.Of <ICountryRepository>(), Mock.Of <IShoutboxChannelRepository>(), Mock.Of <IConfigurationRepository>()); SingletonInit.Init(); }