/// <summary> /// Requires an int has not its max value /// </summary> /// <param name="val"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsNotMaxValue(int val, string key) => IsNotMaxValue(val, key, FluntErrorMessages.IsNotMaxValueErrorMessage(key, int.MaxValue.ToString()));
/// <summary> /// Requires a date is not max value /// </summary> /// <param name="val">date</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsNotMaxValue(DateTime val, string key) => IsNotMaxValue(val, key, FluntErrorMessages.IsNotMaxValueErrorMessage(key, DateTime.MaxValue.ToString(FluntFormats.DateTimeFormat)));
/// <summary> /// Requires a decimal has not its max value /// </summary> /// <param name="val"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsNotMaxValue(decimal val, string key) => IsNotMaxValue(val, key, FluntErrorMessages.IsNotMaxValueErrorMessage(key, decimal.MaxValue.ToString()));
/// <summary> /// Requires a date is not max value /// </summary> /// <param name="val">date</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsNotMaxValue(TimeSpan val, string key) => IsNotMaxValue(val, key, FluntErrorMessages.IsNotMaxValueErrorMessage(key, TimeSpan.MaxValue.ToString()));