public void Setup() { _parameterId = 1; _parameterName = "ParameterName"; _parameterDataType = "Type"; _parameterMaxLength = 2; _isOutParameter = true; _biz = new StoredProcFuncInfoParams( _parameterId, _parameterName, _parameterDataType, _parameterMaxLength, _isOutParameter ); List <StoredProcFuncInfoParams> bizCollection = new List <StoredProcFuncInfoParams>(); bizCollection.Add(_biz); _parentObject = new StoredProcFuncInfo("ObjectName", "ObjectType", bizCollection); _biz.ParentObject = _parentObject; }
public void StoredProcFuncInfo_ctor_ArgumentNullExceptionThrownWithNullParameterType() { // Arrange / Act / Assert _biz = new StoredProcFuncInfoParams(_parameterId, _parameterName, null, _parameterMaxLength, _isOutParameter); }
/// <summary> /// Create row for parameter /// </summary> /// <param name="sheet">The sheet</param> /// <param name="currentRow">The current row</param> /// <param name="param">The parameter to print</param> private void CreateTableRowsForParameter(ref IXLWorksheet sheet, ref int currentRow, StoredProcFuncInfoParams param) { IXLRange row = CreateRow(ref sheet, ref currentRow); int currentColumn = 1; row.Cell(1, currentColumn++).Value = param.ParentObject.ObjectName; row.Cell(1, currentColumn++).Value = param.ParentObject.ObjectType; row.Cell(1, currentColumn++).Value = param.ParameterName; row.Cell(1, currentColumn++).Value = param.ParameterId; row.Cell(1, currentColumn++).Value = param.ParameterDataType; row.Cell(1, currentColumn++).Value = param.ParameterMaxLength; row.Cell(1, currentColumn++).Value = param.IsOutParameter; }