Пример #1
0
 public ShoutboxController(IShoutboxMessageRepository shoutboxMessageRepository, IPopupService popupService,
                           IShoutBoxService shoutBoxService, IShoutboxChannelRepository shoutboxChannelRepository)
     : base(popupService)
 {
     this.shoutboxMessageRepository = shoutboxMessageRepository;
     this.shoutBoxService           = shoutBoxService;
     this.shoutboxChannelRepository = shoutboxChannelRepository;
 }
Пример #2
0
        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();
        }
Пример #3
0
 public StartService(IShoutBoxService shoutBoxService, IHospitalService hospitalService, IEntityRepository entityRepository)
 {
     this.shoutBoxService  = Attach(shoutBoxService);
     this.hospitalService  = Attach(hospitalService);
     this.entityRepository = entityRepository;
 }
Пример #4
0
 public ShoutBoxServiceTests()
 {
     shoutBoxService = new ShoutBoxService(shoutboxMessageRepository.Object, Mock.Of <ICountryRepository>(), Mock.Of <IShoutboxChannelRepository>(), Mock.Of <IConfigurationRepository>());
     SingletonInit.Init();
 }