public void InsertString_값_삽입하기_pk_자동생성()
        {
            OracleORMHelper helper = new OracleORMHelper();

            OracleRepositoryString RepositoryString = new OracleRepositoryString(helper);
            Test2Class             t2 = new Test2Class();

            Assert.Throws <RequiredValueNotFoundException>(() => RepositoryString.InsertStr(t2));


            t2.Data = "test";

            string expect2 = "INSERT INTO Test2 ( Data, CDate ) VALUES ( :Data, SYSDATE )";
            var    actual2 = RepositoryString.InsertStr(t2);

            Assert.Equal(expect2, actual2);


            t2.FakeNameColumn = "test";

            string expect3 = "INSERT INTO Test2 ( Data, RealColumnName, CDate ) VALUES ( :Data, :FakeNameColumn, SYSDATE )";
            var    actual3 = RepositoryString.InsertStr(t2);

            Assert.Equal(expect3, actual3);
        }
        public void InsertString_값_삽입하기()
        {
            OracleORMHelper helper = new OracleORMHelper();

            OracleRepositoryString RepositoryString = new OracleRepositoryString(helper);
            TestClass t = new TestClass();

            Assert.Throws <PkNotFoundException>(() => RepositoryString.InsertStr(t));

            t.Id   = 1;
            t.Data = "test";

            string expect2 = "INSERT INTO Test ( Id, Data, CDate ) VALUES ( :Id, :Data, SYSDATE )";
            var    actual2 = RepositoryString.InsertStr(t);

            Assert.Equal(expect2, actual2);


            t.FakeNameColumn = "test";

            string expect3 = "INSERT INTO Test ( Id, Data, RealColumnName, CDate ) VALUES ( :Id, :Data, :FakeNameColumn, SYSDATE )";
            var    actual3 = RepositoryString.InsertStr(t);

            Assert.Equal(expect3, actual3);
        }