ProcessMapPlanBaseDto remove validation of IdWell

This commit is contained in:
ngfrolov 2024-03-15 14:33:14 +05:00
parent 71d14c6fd8
commit 26bb23f7da
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,6 @@ public abstract class ProcessMapPlanBaseDto : ChangeLogAbstract, IId, IWellRelat
/// <summary>
/// Id скважины
/// </summary>
[Range(1, int.MaxValue, ErrorMessage = "Id скважины не может быть меньше 1")]
public int IdWell { get; set; }
/// <summary>

View File

@ -202,6 +202,7 @@ public class ProcessMapPlanDrillingControllerTest: BaseIntegrationTest
entry.State = EntityState.Detached;
var dtoUpdate = dto.Adapt<ProcessMapPlanDrillingDto>();
dtoUpdate.IdWell = 0;
dtoUpdate.Id = entry.Entity.Id;
dtoUpdate.Comment = "nebuchadnezzar";
dtoUpdate.DeltaPressureLimitMax++;
@ -263,6 +264,7 @@ public class ProcessMapPlanDrillingControllerTest: BaseIntegrationTest
var expected = dtoUpdate.Adapt<ProcessMapPlanDrilling>();
var excludeProps = new[] {
nameof(ProcessMapPlanDrilling.Id),
nameof(ProcessMapPlanDrilling.IdWell),
nameof(ProcessMapPlanDrilling.Author),
nameof(ProcessMapPlanDrilling.IdAuthor),
nameof(ProcessMapPlanDrilling.Editor),