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