Exemple #1
0
        static void Main(string[] args)
        {
            // Get our Entity Framework implementation of the data access layer
            var dal = new DataAccessLayer();

            // Get the shared performance test runner
            var test = new PerformanceTest(dal);

            // Run all the performance tests and output results to the console
            using (var output = Console.OpenStandardOutput())
            {
                using (var writer = new StreamWriter(output))
                {
                    test.RunTests(writer);
                }
            }
            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var container = ConfigureIoc();

            // Load the urchin config file. Prius uses Urchin for configuration
            var urchinConfigFile = container.Resolve<FileSource>();
            urchinConfigFile.Initialize(new FileInfo("urchin.json"), TimeSpan.FromSeconds(10));

            // Get our Prius implementation of the data access layer
            var dal = container.Resolve<IDataAccessLayer>();

            // Get the shared performance test runner
            var test = new PerformanceTest(dal);

            // Run all the performance tests and output results to the console
            using (var output = Console.OpenStandardOutput())
            {
                using (var writer = new StreamWriter(output))
                {
                    test.RunTests(writer);
                }
            }
            Console.ReadKey();
        }