i want to develop a testable TcpClient / TcpListener wrapper. I want to be able to mock the incoming and outgoing data.
I want to do this because i have higher tier components that should react on network messages. For testing reasons i want to mock (the network) them.
Can some one please give me a kick in the right direction?
You could use the Decorator Pattern
Repeat the same for TcpServer.