BuildStart() 공개 정적인 메소드

public static BuildStart ( IConnection connection, string transport, string connectionData ) : string
connection IConnection
transport string
connectionData string
리턴 string
예제 #1
0
            public void BuildStartChecksInputParameters()
            {
                Assert.Equal("connection",
                             Assert.Throws <ArgumentNullException>(
                                 () => UrlBuilder.BuildStart(null, "transport", string.Empty)).ParamName);

                Assert.Equal("transport",
                             Assert.Throws <ArgumentNullException>(
                                 () => UrlBuilder.BuildStart(Mock.Of <IConnection>(), null, string.Empty)).ParamName);

                Assert.Equal("transport",
                             Assert.Throws <ArgumentNullException>(
                                 () => UrlBuilder.BuildStart(Mock.Of <IConnection>(), string.Empty, string.Empty)).ParamName);

                Assert.Equal("transport",
                             Assert.Throws <ArgumentNullException>(
                                 () => UrlBuilder.BuildStart(Mock.Of <IConnection>(), " ", string.Empty)).ParamName);
            }
예제 #2
0
 public void BuildStartRetunsValidUrlWithConnectionDataAndCustomQueryString(string qs, string expected)
 {
     Assert.Equal(
         "http://fakeurl/start?clientProtocol=1.42&transport=webPolling&connectionData=CustomConnectionData&connectionToken=My%20Conn%20Token" + expected,
         UrlBuilder.BuildStart(CreateConnection(qs), "webPolling", "CustomConnectionData"));
 }
예제 #3
0
 public void BuildStartRetunsValidUrlWithConnectionData(string connectionData, string expected)
 {
     Assert.Equal(
         "http://fakeurl/start?clientProtocol=1.42&transport=webPolling" + expected + "&connectionToken=My%20Conn%20Token",
         UrlBuilder.BuildStart(CreateConnection(), "webPolling", connectionData));
 }