Exemplo n.º 1
0
 /// <summary>
 ///     Validates if a parameter is Null and throws ArgumentNullException if so.
 /// </summary>
 /// <param name="parameter">Parameter to be validated.</param>
 /// <param name="parameterName">Name of the parameter.</param>
 public static void ShouldNotBeNull(this object parameter, string parameterName)
 {
     Validations.ThrowIfParameterNull(parameter, parameterName);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Validates if a parameter is Null and throws ArgumentNullException if so.
 /// </summary>
 /// <param name="parameter">Parameter to be validated.</param>
 public static void ShouldNotBeNull(this object parameter)
 {
     Validations.ThrowIfParameterNull(parameter);
 }