Mock server used in unit testing when using a real server would be much too slow.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Networking Server
DeltaEngine.Networking.Mocks MockServer
Namespace: DeltaEngine.Networking.Mocks
Assembly: DeltaEngine.Networking.Mocks (in DeltaEngine.Networking.Mocks.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The MockServer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | MockServer | Initializes a new instance of the MockServer class |
Methods
Name | Description | |
---|---|---|
![]() | ClientConnectedToServer | |
![]() | ClientDisconnectedFromServer | |
![]() | Dispose | Releases all resources used by the MockServer (Overrides Server Dispose .) |
![]() | OnClientDataReceived | (Inherited from Server.) |
![]() | RaiseClientConnected | (Inherited from Server.) |
![]() | RaiseClientDisconnected | (Inherited from Server.) |
![]() | ReceiveMessage | |
![]() | SendToAllClients | |
![]() | Start | (Overrides Server Start(Int32).) |
Fields
Name | Description | |
---|---|---|
![]() | connectedClients | (Inherited from Server.) |
Properties
Name | Description | |
---|---|---|
![]() | IsRunning | (Inherited from Server.) |
![]() | LastMessage | |
![]() | ListenPort | (Inherited from Server.) |
![]() | NumberOfConnectedClients | (Inherited from Server.) |
Events
Name | Description | |
---|---|---|
![]() | ClientConnected | (Inherited from Server.) |
![]() | ClientDataReceived | (Inherited from Server.) |
![]() | ClientDisconnected | (Inherited from Server.) |
See Also