Example #1
0
        public static void Main(string[] args)
        {
            CreateSqlCollections();

            bool hasScalingBeenEnabled = DatabaseConnectionStringFactory.IsConfigFileForScaledServersUsed();
            bool wipeExistingDatabase  = true;

            int[] modelAmounts = new int[] { 10, 500, 1000, 5000 };

            var allTestReports = new List <TestReport>();

            allTestReports.AddRange(GetSimpleDriverTestReports(modelAmounts, hasScalingBeenEnabled, wipeExistingDatabase));
            allTestReports.AddRange(GetEntityFrameworkTestReports(modelAmounts, hasScalingBeenEnabled, wipeExistingDatabase));
            allTestReports.AddRange(GetCqrsTestReports(modelAmounts, hasScalingBeenEnabled, wipeExistingDatabase));

            string reportName = hasScalingBeenEnabled ? "scaled_simple_drivers_tests" : "unscaled_simple_drivers_tests";

            TestReport.CombineTestReportsIntoCsvFile(allTestReports, reportName);
        }