Ejemplo n.º 1
0
        public void BroadCastMessageTest()
        {
            ClientCall remoteCall = null; // TODO: Initialize to an appropriate value

            SseHelper.BroadCastMessage(remoteCall);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Ejemplo n.º 2
0
        public void AddStreamTest()
        {
            string       id           = string.Empty; // TODO: Initialize to an appropriate value
            StreamWriter streamWriter = null;         // TODO: Initialize to an appropriate value
            string       expected     = string.Empty; // TODO: Initialize to an appropriate value
            string       actual;

            actual = SseHelper.AddStream(id, streamWriter);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 3
0
        public void SendMessageTest()
        {
            ClientCall remoteCall     = null;  // TODO: Initialize to an appropriate value
            bool       throwException = false; // TODO: Initialize to an appropriate value
            bool       expected       = false; // TODO: Initialize to an appropriate value
            bool       actual;

            actual = SseHelper.SendMessage(remoteCall, throwException);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Stores the stream
        /// </summary>
        private void OnStreamAvailable(Stream stream, HttpContent headers, TransportContext context)
        {
            StreamWriter streamWriter = new StreamWriter(stream);
            var          id           = headers.Headers.ContentLanguage.FirstOrDefault(l => l.StartsWith("id-"));

            if (id != null)
            {
                id = id.Replace("id-", "");
                string newId;
                //we send an ID as a language
                newId = SseHelper.AddStream(id, streamWriter);
                if (IncommingConnectionIdAssigned != null)
                {
                    IncommingConnectionIdAssigned(newId);
                }
            }
        }
Ejemplo n.º 5
0
        public void SseHelperConstructorTest()
        {
            SseHelper target = new SseHelper();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }