SetRequestHeaders() private méthode

private SetRequestHeaders ( string>.IDictionary headers ) : void
headers string>.IDictionary
Résultat void
        public void SetRequestHeadersSetsHeadersOnWebSockets()
        {
            var webSocket = new FakeWebSocket();
            var webSocketRequest = new WebSocketRequest(webSocket);

            webSocketRequest.SetRequestHeaders(
                new Dictionary<string, string> { { "Header1", "Value1" }, { "Header2", "Value2" } });

            webSocket.Verify(
                "SetRequestHeader",
                new List<object[]>
                {
                    new object[] {"Header1", "Value1"},
                    new object[] {"Header2", "Value2"},
                });
        }
        public void SetRequestHeadersSetsHeadersOnWebSockets()
        {
            var webSocket        = new FakeWebSocket();
            var webSocketRequest = new WebSocketRequest(webSocket);

            webSocketRequest.SetRequestHeaders(
                new Dictionary <string, string> {
                { "Header1", "Value1" }, { "Header2", "Value2" }
            });

            webSocket.Verify(
                "SetRequestHeader",
                new List <object[]>
            {
                new object[] { "Header1", "Value1" },
                new object[] { "Header2", "Value2" },
            });
        }