public void Setup() { _objectName = "ObjectName"; _objectType = "ObjectType"; _parameters = new List <StoredProcFuncInfoParams>() { new StoredProcFuncInfoParams(1, "ParameterName", "ParameterDataType", 2, true) }; _biz = new StoredProcFuncInfo(_objectName, _objectType, _parameters); }
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; }
/// <summary> /// Create rows for db objects /// </summary> /// <param name="sheet">The worksheet</param> /// <param name="currentRow">The current row</param> /// <param name="obj">The object to print</param> private void CreateTableRowsForObject(ref IXLWorksheet sheet, ref int currentRow, StoredProcFuncInfo obj) { int startSectionRow = currentRow; IXLRange row = CreateRow(ref sheet, ref currentRow); int currentColumn = 1; row.Cell(1, currentColumn++).Value = obj.ObjectName; row.Cell(1, currentColumn++).Value = obj.ObjectType; foreach (StoredProcFuncInfoParams param in obj.Parameters) { CreateTableRowsForParameter(ref sheet, ref currentRow, param); } int endSectionRow = currentRow - 1; ApplyFormattingToSection(ref sheet, startSectionRow, endSectionRow); currentRow++; }
public void StoredProcFuncInfo_ctor_ArgumentNullExceptionThrownWithNullParameters() { // Arrange / Act / Assert _biz = new StoredProcFuncInfo(_objectName, _objectType, null); }