コード例 #1
0
        public void CRUD_sequentialy_N_large_entities([Values(1,10,30)] int qtd, [Values("ADO", "EF", "ORMLite")] string impl)
        {
            var testImpls = new RepoImplsTests();

            for (int i = 0; i < qtd; i++)
                testImpls.CRUD_LargeModel(impl);
        }
コード例 #2
0
        public void CRUD_parallely_N_large_entities([Values(1,10,30)] int qtd, [Values("ADO", "EF", "ORMLite")] string impl)
        {
            Parallel.For(0, qtd, new ParallelOptions { MaxDegreeOfParallelism = 5 }, (int i) =>
            {
                var testImpls = new RepoImplsTests();

                testImpls.CRUD_LargeModel(impl);
            });
        }