コード例 #1
0
        public void Create_sequentialy_N_oneToMany_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.Create_OneToManyModel(impl);
        }
コード例 #2
0
        public void Create_parallely_N_oneToMany_entities([Values(1,10,30)] int qtd, [Values("ADO", "EF", "ORMLite")] string impl)
        {
            Parallel.For(0, qtd, (int i) =>
            {
                var testImpls = new RepoImplsTests();

                testImpls.Create_OneToManyModel(impl);
            });
        }