예제 #1
0
        // This method calls the rope append test and sends results.
        public HttpResponseMessage GetRopeAppendTestResults(int iterations)
        {
            TestModel   resultRope  = new TestModel();
            TestService testService = new TestService();

            resultRope = testService.AppendTest(iterations, "Rope");
            return(Request.CreateResponse(HttpStatusCode.OK, resultRope));
        }
예제 #2
0
        // This method calls the Stringbuilder append test and sends results.
        public HttpResponseMessage GetBigListAppendTestResults(int iterations)
        {
            TestModel   resultBL    = new TestModel();
            TestService testService = new TestService();

            testService.ReadFiles();
            resultBL = testService.AppendTest(iterations, "BigList");
            return(Request.CreateResponse(HttpStatusCode.OK, resultBL));
        }
예제 #3
0
        // This method calls the Stringbuilder append test and sends results.
        public HttpResponseMessage GetStringBuilderAppendTestResults(int iterations)
        {
            TestModel   resultSB    = new TestModel();
            TestService testService = new TestService();

            testService.ReadFiles();
            resultSB = testService.AppendTest(iterations, "StringBuilder");
            return(Request.CreateResponse(HttpStatusCode.OK, resultSB));
        }