コード例 #1
0
ファイル: BigListApiController.cs プロジェクト: RopeLEAP/rope
        // Run and return BigList tests
        public HttpResponseMessage GetBigListFillTestResults(int iterations)
        {
            TestModel   resultBL    = new TestModel();
            TestService testService = new Services.TestService();

            testService.ReadFiles();
            resultBL = testService.FillTest(iterations, "BigList");
            return(Request.CreateResponse(HttpStatusCode.OK, resultBL));
        }
コード例 #2
0
ファイル: RopeApiController.cs プロジェクト: RopeLEAP/rope
        public HttpResponseMessage GetRopeFillTestResults(int iterations)
        {
            TestModel   resultRope  = new TestModel();
            TestService testService = new Services.TestService();

            //testService.ReadFiles();
            resultRope = testService.FillTest(iterations, "Rope");
            return(Request.CreateResponse(HttpStatusCode.OK, resultRope));
        }
コード例 #3
0
        // Run and return stringbuilder tests
        public HttpResponseMessage GetStringBuilderFillTestResults(int iterations)
        {
            TestModel   resultSB    = new TestModel();
            TestService testService = new Services.TestService();

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