OpenStream() public method

public OpenStream ( ) : IMessageStream
return IMessageStream
        public void can_open_stream()
        {
            var endpoint = new LiveMessageStreamEndpoint();

            using(var stream = endpoint.OpenStream())
            {
                Assert.NotNull(stream);
            }
        }
        public void can_read_from_stream()
        {
            var buffer = new byte[1];
            var endpoint = new LiveMessageStreamEndpoint();

            using(var stream = endpoint.OpenStream())
            {
                Assert.True(stream.Fill(buffer, 0, buffer.Length));
            }
        }