Beispiel #1
0
        public void MethodParameterTest()
        {
            // Arrange
            var helper    = new ProcedureHelper();
            var procedure = new Procedure("proc", "proc", null, new List <Parameter> {
                new Parameter("param1", DataTypeHelper.Instance.GetMap(TypeFormat.DotNetFrameworkType, "Int32?"), false, null),
                new Parameter("param2", DataTypeHelper.Instance.GetMap(TypeFormat.DotNetFrameworkType, "Int32?"), true, null)
            }, null);

            // Act
            var result = helper.GetMethodParamList(procedure, true, true, false);

            // Assert
            Assert.AreEqual("Int32? param1, out Int32? param2", result);
        }
        public void MethodParameterTest()
        {
            // Arrange
            var helper = new ProcedureHelper();
            var procedure = new Procedure("proc", "proc", null, new List<Parameter> {
                new Parameter("param1", DataTypeHelper.Instance.GetMap(TypeFormat.DotNetFrameworkType, "Int32?"), false, null),
                new Parameter("param2", DataTypeHelper.Instance.GetMap(TypeFormat.DotNetFrameworkType, "Int32?"), true, null)
            }, null);

            // Act
            var result = helper.GetMethodParamList(procedure, true, true, false);

            // Assert
            Assert.AreEqual("Int32? param1, out Int32? param2", result);
        }