public static T Received <T>(this T mock, int times) { SubstituteContext.RegisterAssertion( new ReceivedAssertion(times)); return(mock); }
public static T ReceivedWithAnyArgs <T>(this T proxy) { SubstituteContext.RegisterAssertion( new ReceivedWithAnyArgsAssertion()); return(proxy); }