Ejemplo n.º 1
0
        private static IErrorHandlerPlugin CreateErrorHandlerPlugin(int order)
        {
            IErrorHandlerPlugin plugin = Substitute.For <IErrorHandlerPlugin>();

            plugin.Order.Returns(order);
            plugin.CanHandle(null).ReturnsForAnyArgs(false);
            plugin.Process(null, null).ReturnsForAnyArgs((IResponseData)null);
            return(plugin);
        }