예제 #1
0
        protected virtual void Setup()
        {
            TestClient      = TestHost.GetTestClient();
            TestServer      = TestHost.GetTestServer();
            WebSocketClient = TestServer.CreateWebSocketClient();

            TestApiUri = new UriBuilder(TestServer.BaseAddress)
            {
                Path = "/api/"
            }.Uri;

            TestWebSocketsUri = new UriBuilder(TestServer.BaseAddress)
            {
                Scheme = "ws",
                Path   = "/ws/"
            }.Uri;
        }