public void Setup() { _pipedTwoChannels = new PipedTwoChannels(); _typeSerializers = new TypeSerializers(); _first = new DtoChannel(_pipedTwoChannels.First, _typeSerializers); _second = new DtoChannel(_pipedTwoChannels.Second, _typeSerializers); }
public DtoChannelTest() { _pipedTwoChannels = new PipedTwoChannels(); _typeSerializers = new TypeSerializers(); _first = new DtoChannel(_pipedTwoChannels.First, _typeSerializers); _second = new DtoChannel(_pipedTwoChannels.Second, _typeSerializers); }
public DtoChannel(IChannel channel, ITypeSerializerMappingFactory mappingFactory) { _channel = channel; _receivingMapping = mappingFactory.CreateMapping(); _sendingMapping = mappingFactory.CreateMapping(); _channel.OnReceive.Subscribe(new Receiver(this)); }