Exemple #1
0
 /// <summary>
 /// Requires an int is greater or equals than
 /// </summary>
 /// <param name="val">val</param>
 /// <param name="comparer">comparer</param>
 /// <param name="key">Key or Property Message</param>
 /// <returns></returns>
 public Contract <T> IsGreaterOrEqualsThan(int val, long comparer, string key) =>
 IsGreaterOrEqualsThan(val, (int)comparer, key, FluntErrorMessages.IsGreaterOrEqualsThanErrorMessage(key, comparer.ToString()));
Exemple #2
0
 /// <summary>
 /// Requires a decimal is greater or equals than
 /// </summary>
 /// <param name="val">val</param>
 /// <param name="comparer">comparer</param>
 /// <param name="key">Key or Property Message</param>
 /// <returns></returns>
 public Contract <T> IsGreaterOrEqualsThan(decimal val, int comparer, string key) =>
 IsGreaterOrEqualsThan(val, (decimal)comparer, key, FluntErrorMessages.IsGreaterOrEqualsThanErrorMessage(key, comparer.ToString()));
 /// <summary>
 /// Requires a double is greater or equals than
 /// </summary>
 /// <param name="val">val</param>
 /// <param name="comparer">comparer</param>
 /// <param name="key">Key or Property Message</param>
 /// <returns></returns>
 public Contract <T> IsGreaterOrEqualsThan(double val, float comparer, string key) =>
 IsGreaterOrEqualsThan(val, (double)comparer, key, FluntErrorMessages.IsGreaterOrEqualsThanErrorMessage(key, comparer.ToString()));
 /// <summary>
 /// Requires a date is greater or equals 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> IsGreaterOrEqualsThan(DateTime val, DateTime comparer, string key) =>
 IsGreaterOrEqualsThan(val, comparer, key, FluntErrorMessages.IsGreaterOrEqualsThanErrorMessage(key, comparer.ToString(FluntFormats.DateTimeFormat)));
Exemple #5
0
 /// <summary>
 /// Requires a list count is greater or equals than
 /// </summary>
 /// <typeparam name="TList"></typeparam>
 /// <param name="val"></param>
 /// <param name="comparer"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public Contract <T> IsGreaterOrEqualsThan <TList>(IEnumerable <TList> val, int comparer, string key) =>
 IsGreaterOrEqualsThan(val, comparer, key, FluntErrorMessages.IsGreaterOrEqualsThanErrorMessage(key, comparer.ToString()));
Exemple #6
0
 /// <summary>
 /// Requires a date is greater or equals 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> IsGreaterOrEqualsThan(TimeSpan val, TimeSpan comparer, string key) =>
 IsGreaterOrEqualsThan(val, comparer, key, FluntErrorMessages.IsGreaterOrEqualsThanErrorMessage(key, comparer.ToString()));