forked from ddrilling/AsbCloudServer
ProcessMapPlanBaseDto remove validation of IdWell
This commit is contained in:
parent
71d14c6fd8
commit
26bb23f7da
@ -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>
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user