public static ConfiguredCall ReturnsNullForAnyArgs <T>(this ValueTask <T> value) where T : class => value.ReturnsForAnyArgs(default(T));
/// <summary> /// Set null as returned value for this call made with any arguments. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="value"></param> /// <returns></returns> public static ConfiguredCall ReturnsNullForAnyArgs <T>(this ValueTask <T> value) where T : class { return(value.ReturnsForAnyArgs(i => SubstituteExtensions.CompletedValueTask <T>(null))); }