| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Seasar.Dao.Tests.Impl\UpdateBatchAutoStaticCommandTest.cs | - | - | - | - |
|
1 | using System; | |
2 | using Seasar.Dao; | |
3 | using Seasar.Dao.Impl; | |
4 | using Seasar.Extension.ADO; | |
5 | using Seasar.Extension.ADO.Impl; | |
6 | using Seasar.Framework.Container; | |
7 | using Seasar.Framework.Container.Factory; | |
8 | using MbUnit.Framework; | |
9 | ||
10 | namespace Seasar.Dao.Tests.Impl | |
11 | { | |
12 | //NotSupported | |
13 | ||
14 | // [TestFixture] | |
15 | // public class UpdateBatchAutoStaticCommandTest | |
16 | // { | |
17 | // private const string PATH = "Tests.dicon"; | |
18 | // private IDataSource dataSource; | |
19 | // | |
20 | // [SetUp] | |
21 | // public void SetUp() | |
22 | // { | |
23 | // IS2Container container = S2ContainerFactory.Create(PATH); | |
24 | // dataSource = (IDataSource) container.GetComponent(typeof(IDataSource)); | |
25 | // } | |
26 | // | |
27 | // [Test] | |
28 | // public void TestExecuteTx() | |
29 | // { | |
30 | // IDaoMetaData dmd = new DaoMetaDataImpl(typeof(EmployeeAutoDao), | |
31 | // dataSource, BasicCommandFactory.INSTANCE, | |
32 | // BasicDataReaderFactory.INSTANCE, new DatabaseMetaDataImpl(dataSource)); | |
33 | // | |
34 | // Assert.Ignore("UpdateBatchを有効にすると例外"); | |
35 | // | |
36 | // ISqlCommand cmd = dmd.GetSqlCommand("UpdateBatch"); | |
37 | // Employee emp = new Employee(); | |
38 | // emp.Empno = 7788; | |
39 | // emp.Ename = "hoge"; | |
40 | // Employee emp2 = new Employee(); | |
41 | // emp2.Empno = 7369; | |
42 | // emp2.Ename = "hoge2"; | |
43 | // Int32 count = (Int32) cmd.Execute(new Object[] { new Employee[] { emp, emp2 } }); | |
44 | // Assert.AreEqual(2, count, "1"); | |
45 | // } | |
46 | // } | |
47 | } | |
48 |
|