Exemplo n.º 1
0
        public void DAL_ShouldGetSPOutput()
        {
            SqlParameter[] sqlParameters = new SqlParameter[]
            {
                new SqlParameter("OutputParam", SqlDbType.VarChar, 100)
                {
                    Direction = ParameterDirection.Output
                }
            };

            DBResult result      = dAL.ExecuteStoredProcedure("TestSP_Get_OutputParam", sqlParameters);
            string   outputValue = result.FindOutputParameter("OutputParam").Value;

            Assert.IsNotNull(outputValue);
        }
Exemplo n.º 2
0
        public void DBResult_ShouldFindOutputParameter_ByName()
        {
            OutputParameter outputParameter = ExampleDBResult1.FindOutputParameter("param3");

            Assert.AreEqual(true, outputParameter.Value);
        }