示例#1
0
 public void Setup()
 {
     _protocol = Substitute.For <IReciveTransmissionProtocol>();
     _parser   = Substitute.For <IPacketDeserializer <int> >();
     _reciver  = new MockReciver(_protocol, _parser);
 }
示例#2
0
 public void Setup()
 {
     _sender  = Substitute.For <AbstractSender <IPacket> >(Substitute.For <ISendTransmissionProtocol>(), Substitute.For <IPacketSerializer <IPacket> >());
     _reciver = Substitute.For <AbstractReciver <RecordedInput> >(Substitute.For <IReciveTransmissionProtocol>(), Substitute.For <IPacketDeserializer <RecordedInput> >());
     _server  = new NebulaServer(_sender, _reciver);
 }
示例#3
0
 public NebulaClient(AbstractSender <RecordedInput> inputSender, AbstractReciver <IPacket> packetReciver, InputRecorder inputRecorder)
 {
     _inputSender   = inputSender;
     _packetReciver = packetReciver;
     _inputRecorder = inputRecorder;
 }
示例#4
0
 public NebulaServer(AbstractSender <IPacket> packetSender, AbstractReciver <RecordedInput> inputReciver)
 {
     _packetSender = packetSender;
     _inputReciver = inputReciver;
 }