예제 #1
0
파일: OutRefTest.cs 프로젝트: x64/bltoolkit
        public void TestNullable2()
        {
            NullableEntity e = new NullableEntity();
            int?           @outputID;
            string         @inputOutputStr = "20";

            e.str = "20";

            DataAccessor.CreateInstance <TestNullableAccessor>()
            .OutRefTest(out @outputID, e, ref @inputOutputStr);

            Assert.IsNull(@outputID);
            Assert.AreEqual("20", e.outputStr);
            Assert.IsNull(e.inputOutputID);
            Assert.AreEqual("2040", @inputOutputStr);
        }
예제 #2
0
		public void TestNullable2()
		{
			NullableEntity e = new NullableEntity();
			int?   @outputID;
			string @inputOutputStr = "20";
			e.str = "20";

			DataAccessor.CreateInstance<TestNullableAccessor>()
				.OutRefTest(out @outputID, e, ref @inputOutputStr);

			Assert.IsNull  (@outputID);
			Assert.AreEqual("20", e.outputStr);
			Assert.IsNull  (e.inputOutputID);
			Assert.AreEqual("2040", @inputOutputStr);
		}
예제 #3
0
파일: OutRefTest.cs 프로젝트: x64/bltoolkit
 public abstract void OutRefTest(
     out int? @outputID,
     [Direction.InputOutput("inputOutputID", "inputOutputStr"), Direction.Output("outputStr", "outputID")] NullableEntity entity,
     ref string @inputOutputStr);