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

            return(mock);
        }
Ejemplo n.º 2
0
        public static T ReceivedWithAnyArgs <T>(this T proxy)
        {
            SubstituteContext.RegisterAssertion(
                new ReceivedWithAnyArgsAssertion());

            return(proxy);
        }