public void SetUp()
        {
            _mocks = new MockRepository();

             _streamAdapter = _mocks.DynamicMock<IStreamAdapter>();
             _serializeAdapter = _mocks.DynamicMock<ISerializeAdapter>();
        }
 public BinaryMessageSerializer(IStreamAdapter streamAdapter, ISerializeAdapter serializeAdapter)
 {
     _stream = streamAdapter;
      _serializer = serializeAdapter;
 }