/// <inheritdoc />
 public override void Validate(string errorLocation, string propertyPath = "")
 {
     base.Validate(errorLocation, propertyPath);
     FulcrumValidate.IsNotDefaultValue(LockId, nameof(LockId), errorLocation);
     FulcrumValidate.IsNotNull(TableName, nameof(TableName), errorLocation);
     FulcrumValidate.IsNotDefaultValue(LockedRecordId, nameof(LockedRecordId), errorLocation);
 }
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotDefaultValue(TimeStamp, nameof(TimeStamp), errorLocation);
     //FulcrumValidate.IsLessThanOrEqualTo(DateTimeOffset.Now, TimeStamp, nameof(TimeStamp), errorLocation);
     FulcrumValidate.IsNotDefaultValue(SeverityLevel, nameof(SeverityLevel), errorLocation);
     FulcrumValidate.IsNotNullOrWhiteSpace(Message, nameof(Message), errorLocation);
 }
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNullOrWhiteSpace(Originator, nameof(Originator), errorLocation);
     FulcrumValidate.IsNotNull(UtcDateTimeOffset, nameof(UtcDateTimeOffset), errorLocation);
     FulcrumValidate.IsNotDefaultValue(UtcDateTimeOffset, nameof(UtcDateTimeOffset), errorLocation);
     FulcrumValidate.IsNotNull(SeverityLevel, nameof(SeverityLevel), errorLocation);
 }
 /// <inheritdoc/>
 public override void Validate(string errorLocaction, string propertyPath = "")
 {
     FulcrumValidate.IsGreaterThan(0, Id, nameof(Id), errorLocaction);
     FulcrumValidate.IsNotNullOrWhiteSpace(Name, nameof(Name), errorLocaction);
     FulcrumValidate.IsTrue(Regex.IsMatch(Name, "^[a-zA-Z]+$"), errorLocaction, $"Property {nameof(Name)} must only consist of upper or lower case a-z.");
     FulcrumValidate.IsNotNullOrWhiteSpace(Category, nameof(Category), errorLocaction);
     FulcrumValidate.IsTrue(Regex.IsMatch(Category, "^[a-zA-Z]+$"), errorLocaction, $"Property {nameof(Category)} must only consist of upper or lower case a-z.");
     FulcrumValidate.IsGreaterThanOrEqualTo(0.0, Price, nameof(Price), errorLocaction);
     FulcrumValidate.IsNotDefaultValue(DateAdded, nameof(DateAdded), errorLocaction);
     FulcrumValidate.IsLessThanOrEqualTo(DateTimeOffset.Now, DateAdded, nameof(DateAdded), errorLocaction);
 }
Esempio n. 5
0
 /// <inheritdoc/>
 public void Validate(string errorLocaction, string propertyPath = "")
 {
     FulcrumValidate.IsNotNullOrWhiteSpace(Id, nameof(Id), errorLocaction);
     FulcrumValidate.IsNotNullOrWhiteSpace(Name, nameof(Name), errorLocaction);
     FulcrumValidate.MatchesRegExp("^[a-zA-Z]+$", Name, nameof(Name), errorLocaction);
     FulcrumValidate.IsNotNullOrWhiteSpace(Category, nameof(Category), errorLocaction);
     FulcrumValidate.MatchesRegExp("^[a-zA-Z]+$", Category, nameof(Category), errorLocaction);
     FulcrumValidate.IsGreaterThanOrEqualTo(0.0, Price, nameof(Price), errorLocaction);
     FulcrumValidate.IsNotDefaultValue(DateAdded, nameof(DateAdded), errorLocaction);
     FulcrumValidate.IsLessThanOrEqualTo(DateTimeOffset.Now, DateAdded, nameof(DateAdded), errorLocaction);
 }
Esempio n. 6
0
 /// <inheritdoc />
 public virtual void Validate(string errorLocaction, string propertyPath = "")
 {
     FulcrumValidate.IsNotDefaultValue(Id, nameof(Id), errorLocaction);
     FulcrumValidate.IsNotNullOrWhiteSpace(Etag, nameof(Etag), errorLocaction);
 }
 /// <inheritdoc />
 public override void Validate(string errorLocation, string propertyPath = "")
 {
     base.Validate(errorLocation, propertyPath);
     FulcrumValidate.IsNotDefaultValue(MasterId, nameof(MasterId), errorLocation);
     FulcrumValidate.IsNotDefaultValue(SlaveId, nameof(SlaveId), errorLocation);
 }
 /// <inheritdoc />
 public virtual void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotDefaultValue(MasterId, nameof(MasterId), errorLocation);
     FulcrumValidate.IsNotDefaultValue(SlaveId, nameof(SlaveId), errorLocation);
 }
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNullOrWhiteSpace(City, nameof(City), errorLocation);
     FulcrumValidate.IsNotDefaultValue(PersonId, nameof(PersonId), errorLocation);
 }
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotDefaultValue(PersonId, nameof(PersonId), errorLocation);
     FulcrumValidate.IsNotDefaultValue(ConsentId, nameof(ConsentId), errorLocation);
 }
Esempio n. 11
0
 /// <inheritdoc />
 public virtual void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotDefaultValue(LockId, nameof(LockId), errorLocation);
     FulcrumValidate.IsNotDefaultValue(ValidUntil, nameof(ValidUntil), errorLocation);
 }