public void DataSizePerformanceTests(int viewModelSize) { Trace.AutoFlush = true; var traceSource = CreateTraceSource(); var dataModel = new DataFactory().CreateViewModelCollection(viewModelSize); Console.WriteLine("View Model Size: " + viewModelSize); var filter = new LogFilter(traceSource, traceSource, new Recodify.Logging.Common.HttpContext(), new Options()); var action = new Action(() => filter.OnActionExecuted(new ActionExecutedContext { Controller = new TestController(dataModel), HttpContext = new TestContext() })); var test = new PerformanceTest(action, 10, true); test.Perform(); }
private void PerformTests(PerformanceTest performanceTest) { performanceTest.Perform(_numberOfIterations); }