/// <summary>
 /// Requires a string not contains
 /// </summary>
 /// <param name="val"></param>
 /// <param name="comparer"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public Contract <T> NotContains(string val, string comparer, string key) =>
 NotContains(val, comparer, key, FluntErrorMessages.NotContainsErrorMessage(val, comparer));
Пример #2
0
 /// <summary>
 /// Requires a list does not contains an int
 /// </summary>
 /// <param name="val"></param>
 /// <param name="list"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public Contract <T> NotContains(int val, IEnumerable <int> list, string key) =>
 NotContains(val, list, key, FluntErrorMessages.NotContainsErrorMessage(key, val.ToString()));
Пример #3
0
 /// <summary>
 /// Requires a list not contains a date
 /// </summary>
 /// <param name="val">date</param>
 /// <param name="list">list of dates</param>
 /// <param name="key">Key or Property Name</param>
 /// <returns></returns>
 public Contract <T> NotContains(DateTime val, IEnumerable <DateTime> list, string key)
 => NotContains(val, list, key, FluntErrorMessages.NotContainsErrorMessage(key, val.ToString(FluntFormats.DateTimeFormat)));