public void Init()
 {
     _messageBroker = new MessageBrokerService();
     _subscriber    = Substitute.For <IMockSubscriber>();
     _messageType1  = new MessageType1();
     _messageType2  = new MessageType2();
 }
Exemplo n.º 2
0
        private void Awake()
        {
            var messageBroker        = new MessageBrokerService();
            var timeService          = new TimeService();
            var dataService          = new DataService();
            var configsProvider      = new ConfigsProvider();
            var uiService            = new GameUiService(new UiAssetLoader());
            var worldObjectReference = new WorldObjectReferenceService(_inputSystem, _mainCamera);
            var gameLogic            = new GameLogic(messageBroker, timeService, dataService, configsProvider);
            var gameServices         = new GameServices(messageBroker, timeService, dataService, gameLogic, worldObjectReference);

            MainInstaller.Bind <IGameDataProvider>(gameLogic);
            MainInstaller.Bind <IGameServices>(gameServices);

            _stateMachine = new GameStateMachine(gameLogic, gameServices, uiService, configsProvider, dataService);
        }
 public StartViewModel(INavigationService navigationService, MessageBrokerService messageBrokerService, IEventAggregator eventAggregator)
 {
     this.navigationService    = navigationService;
     this.messageBrokerService = messageBrokerService;
     this.eventAggregator      = eventAggregator;
 }
 public void Insert(MessageBrokerService messageBrokerService)
 {
     _entities.MessageBrokerService.Add(messageBrokerService);
 }
Exemplo n.º 5
0
 public DisconnectedViewModel(MessageBrokerService messageBrokerService)
 {
     this.messageBrokerService = messageBrokerService;
 }
 /// <inheritdoc />
 public void Insert(MessageBrokerService messageBroker)
 {
 }
Exemplo n.º 7
0
 /// <inheritdoc />
 public MessageBrokerQueueException(MessageBrokerService messageBrokerService) : base("Error connecting to Message Broker Queue")
 {
     Data.Add(nameof(messageBrokerService), messageBrokerService);
 }