Example #1
0
        public void ClientServerTest_PerformanceTest()
        {
            DateTime  t          = DateTime.Now;
            const int numOfCalls = 100;

            for (int i = 0; i < numOfCalls; ++i)
            {
                m_ProxyTarget.DoSomething();
            }
            Assert.True(TimeSpan.FromSeconds(1).TotalMilliseconds > (DateTime.Now - t).TotalMilliseconds);
        }
        public IEnumerable <string> Get()
        {
            _custom.DoSomething(); //Call injected service

            return(new string[] { this.Request.QueryString.ToString(), "value2" });
        }