/// <inheritdoc /> public void Validate(string errorLocation, string propertyPath = "") { FulcrumValidate.IsNotNullOrWhiteSpace(Organization, nameof(Organization), errorLocation); FulcrumValidate.IsNotNullOrWhiteSpace(Environment, nameof(Environment), errorLocation); FulcrumValidate.AreEqual(Organization.ToLower(), Organization, nameof(Organization), errorLocation); FulcrumValidate.AreEqual(Environment.ToLower(), Environment, nameof(Environment), errorLocation); }
/// <inheritdoc /> public void Validate(string errorLocation, string propertyPath = "") { FulcrumValidate.IsValidated(PageInfo, propertyPath, nameof(PageInfo), errorLocation); if (!FulcrumApplication.IsInProduction) { FulcrumValidate.AreEqual(PageInfo.Returned, Data.Count(), nameof(Data), $"Validation of {nameof(PageEnvelope<T>)} failed. The number of items in {nameof(Data)} ({Data.Count()}) must be the same as {nameof(PageInfo.Returned)} ({PageInfo.Returned})."); } }