/// <summary> /// Requires an int is greater than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsGreaterThan(int val, float comparer, string key) => IsGreaterThan(val, comparer, key, FluntErrorMessages.IsGreaterThanErrorMessage(key, comparer.ToString()));
/// <summary> /// Requires a decimal is greater than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsGreaterThan(decimal val, double comparer, string key) => IsGreaterThan(val, comparer, key, FluntErrorMessages.IsGreaterThanErrorMessage(key, comparer.ToString()));
/// <summary> /// Requires a list count is greater than /// </summary> /// <typeparam name="TList"></typeparam> /// <param name="val"></param> /// <param name="comparer"></param> /// <param name="key"></param> /// <returns></returns> public Contract <T> IsGreaterThan <TList>(IEnumerable <TList> val, int comparer, string key) => IsGreaterThan(val, comparer, key, FluntErrorMessages.IsGreaterThanErrorMessage(key, comparer.ToString()));
/// <summary> /// Requires a date is greater than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsGreaterThan(DateTime val, DateTime comparer, string key) => IsGreaterThan(val, comparer, key, FluntErrorMessages.IsGreaterThanErrorMessage(key, comparer.ToString(FluntFormats.DateTimeFormat)));
/// <summary> /// Requires a date is greater than /// </summary> /// <param name="val">val</param> /// <param name="comparer">comparer</param> /// <param name="key">Key or Property Name</param> /// <returns></returns> public Contract <T> IsGreaterThan(TimeSpan val, TimeSpan comparer, string key) => IsGreaterThan(val, comparer, key, FluntErrorMessages.IsGreaterThanErrorMessage(key, comparer.ToString()));