| | 1 | | using ValidateLib.ErrorsAndWarnings.Errors; |
| | 2 | | using ValidateLib.ErrorsAndWarnings.Warnings; |
| | 3 | | using ValidateLib.Results; |
| | 4 | |
|
| | 5 | | namespace ResultWriterTests |
| | 6 | | { |
| | 7 | | public class BaseTest |
| | 8 | | { |
| | 9 | | public TableGroupValidationResultDetails GetResultWithTableError() |
| 1 | 10 | | { |
| 1 | 11 | | var tableGResult = new TableGroupValidationResultDetails(); |
| 1 | 12 | | var tableResult = new TableValidationResultDetails(""); |
| 1 | 13 | | tableResult.Errors.Add(ErrorFactory.GetUnknownError()); |
| 1 | 14 | | tableGResult.TableValidationDetails.Add(tableResult); |
| 1 | 15 | | return tableGResult; |
| 1 | 16 | | } |
| | 17 | |
|
| | 18 | | public TableGroupValidationResultDetails GetResultWithTableWarning() |
| 1 | 19 | | { |
| 1 | 20 | | var tableGResult = new TableGroupValidationResultDetails(); |
| 1 | 21 | | var tableResult = new TableValidationResultDetails(""); |
| 1 | 22 | | tableResult.Warnings.Add(WarningFactory.GetBomPresentWarning("_")); |
| 1 | 23 | | tableGResult.TableValidationDetails.Add(tableResult); |
| 1 | 24 | | return tableGResult; |
| 1 | 25 | | } |
| | 26 | |
|
| | 27 | | public TableGroupValidationResultDetails GetResultWithGeneralError() |
| 1 | 28 | | { |
| 1 | 29 | | var tableGResult = new TableGroupValidationResultDetails(); |
| 1 | 30 | | tableGResult.GeneralErrors.Add(ErrorFactory.GetUnknownError()); |
| 1 | 31 | | return tableGResult; |
| 1 | 32 | | } |
| | 33 | |
|
| | 34 | | public TableGroupValidationResultDetails GetResultWithGeneralWarning() |
| 1 | 35 | | { |
| 1 | 36 | | var tableGResult = new TableGroupValidationResultDetails(); |
| 1 | 37 | | tableGResult.GeneralWarnings.Add(WarningFactory.GetBomPresentWarning("")); |
| 1 | 38 | | return tableGResult; |
| 1 | 39 | | } |
| | 40 | | } |
| | 41 | | } |