Beispiel #1
0
        public void Test_DataPortal_Params()
        {
            _ = ArrayDataPortalClass.GetParams(1, 2, 3);
            Assert.AreEqual("Fetch(int[] values)", ApplicationContext.GlobalContext["Method"]);

            _ = ArrayDataPortalClass.GetParams("a", "b", "c");
            Assert.AreEqual("Fetch(string[] values)", ApplicationContext.GlobalContext["Method"]);
        }
Beispiel #2
0
        public void Test_DataPortal_Params()
        {
            IDataPortal <ArrayDataPortalClass> dataPortal = _testDIContext.CreateDataPortal <ArrayDataPortalClass>();

            TestResults.Reinitialise();
            _ = ArrayDataPortalClass.GetParams(dataPortal, 1, 2, 3);
            Assert.AreEqual("Fetch(int[] values)", TestResults.GetResult("Method"));

            TestResults.Reinitialise();
            _ = ArrayDataPortalClass.GetParams(dataPortal, "a", "b", "c");
            Assert.AreEqual("Fetch(string[] values)", TestResults.GetResult("Method"));
        }