Пример #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));
        }