Esempio n. 1
0
 public ClientsController(
     IClientActions clientActions,
     IRepresentationManager representationManager)
 {
     _clientActions         = clientActions;
     _representationManager = representationManager;
 }
Esempio n. 2
0
 private void InitializeFakeObjects()
 {
     _getClientsActionStub     = new Mock <IGetClientsAction>();
     _getClientActionStub      = new Mock <IGetClientAction>();
     _removeClientActionStub   = new Mock <IRemoveClientAction>();
     _updateClientActionStub   = new Mock <IUpdateClientAction>();
     _registerClientActionStub = new Mock <IRegisterClientAction>();
     _clientActions            = new ClientActions(_getClientsActionStub.Object,
                                                   _getClientActionStub.Object,
                                                   _removeClientActionStub.Object,
                                                   _updateClientActionStub.Object,
                                                   _registerClientActionStub.Object);
 }
Esempio n. 3
0
 public void SetCallbacks(IClientActions instance)
 {
     if (m_Wrapper.m_ClientActionsCallbackInterface != null)
     {
         @AddKeyboardPlayer.started   -= m_Wrapper.m_ClientActionsCallbackInterface.OnAddKeyboardPlayer;
         @AddKeyboardPlayer.performed -= m_Wrapper.m_ClientActionsCallbackInterface.OnAddKeyboardPlayer;
         @AddKeyboardPlayer.canceled  -= m_Wrapper.m_ClientActionsCallbackInterface.OnAddKeyboardPlayer;
         @AddGamepadPlayer.started    -= m_Wrapper.m_ClientActionsCallbackInterface.OnAddGamepadPlayer;
         @AddGamepadPlayer.performed  -= m_Wrapper.m_ClientActionsCallbackInterface.OnAddGamepadPlayer;
         @AddGamepadPlayer.canceled   -= m_Wrapper.m_ClientActionsCallbackInterface.OnAddGamepadPlayer;
     }
     m_Wrapper.m_ClientActionsCallbackInterface = instance;
     if (instance != null)
     {
         @AddKeyboardPlayer.started   += instance.OnAddKeyboardPlayer;
         @AddKeyboardPlayer.performed += instance.OnAddKeyboardPlayer;
         @AddKeyboardPlayer.canceled  += instance.OnAddKeyboardPlayer;
         @AddGamepadPlayer.started    += instance.OnAddGamepadPlayer;
         @AddGamepadPlayer.performed  += instance.OnAddGamepadPlayer;
         @AddGamepadPlayer.canceled   += instance.OnAddGamepadPlayer;
     }
 }