public ClientsController( IClientActions clientActions, IRepresentationManager representationManager) { _clientActions = clientActions; _representationManager = representationManager; }
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); }
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; } }