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>
|
/// <summary>
|
||||||
/// Id скважины
|
/// Id скважины
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Range(1, int.MaxValue, ErrorMessage = "Id скважины не может быть меньше 1")]
|
|
||||||
public int IdWell { get; set; }
|
public int IdWell { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -202,6 +202,7 @@ public class ProcessMapPlanDrillingControllerTest: BaseIntegrationTest
|
|||||||
entry.State = EntityState.Detached;
|
entry.State = EntityState.Detached;
|
||||||
|
|
||||||
var dtoUpdate = dto.Adapt<ProcessMapPlanDrillingDto>();
|
var dtoUpdate = dto.Adapt<ProcessMapPlanDrillingDto>();
|
||||||
|
dtoUpdate.IdWell = 0;
|
||||||
dtoUpdate.Id = entry.Entity.Id;
|
dtoUpdate.Id = entry.Entity.Id;
|
||||||
dtoUpdate.Comment = "nebuchadnezzar";
|
dtoUpdate.Comment = "nebuchadnezzar";
|
||||||
dtoUpdate.DeltaPressureLimitMax++;
|
dtoUpdate.DeltaPressureLimitMax++;
|
||||||
@ -263,6 +264,7 @@ public class ProcessMapPlanDrillingControllerTest: BaseIntegrationTest
|
|||||||
var expected = dtoUpdate.Adapt<ProcessMapPlanDrilling>();
|
var expected = dtoUpdate.Adapt<ProcessMapPlanDrilling>();
|
||||||
var excludeProps = new[] {
|
var excludeProps = new[] {
|
||||||
nameof(ProcessMapPlanDrilling.Id),
|
nameof(ProcessMapPlanDrilling.Id),
|
||||||
|
nameof(ProcessMapPlanDrilling.IdWell),
|
||||||
nameof(ProcessMapPlanDrilling.Author),
|
nameof(ProcessMapPlanDrilling.Author),
|
||||||
nameof(ProcessMapPlanDrilling.IdAuthor),
|
nameof(ProcessMapPlanDrilling.IdAuthor),
|
||||||
nameof(ProcessMapPlanDrilling.Editor),
|
nameof(ProcessMapPlanDrilling.Editor),
|
||||||
|
Loading…
Reference in New Issue
Block a user