public void Setup()
        {
            Mock <ILogAgent> mockLog = new Mock <ILogAgent>();

            m_LogAgent = mockLog.Object;

            Mock <ICancelNetwork> mockCancel = new Mock <ICancelNetwork>();

            m_CancelNetwork = mockCancel.Object;
        }
 public ExceptionDecoratorTransformMany(ITransformMany <TIn, TOut> decorated, ILogAgent logAgent, ICancelNetwork cancel)
 {
     m_Decorated = decorated;
     m_LogAgent  = logAgent;
     m_Cancel    = cancel;
 }
コード例 #3
0
 public ExceptionDecoratorTransformationBatched(ITransformationBatched <TIn, TOut> decoratedTransformation, ILogAgent logAgent, ICancelNetwork cancel)
 {
     m_DecoratedTransformation = decoratedTransformation;
     m_LogAgent = logAgent;
     m_Cancel   = cancel;
 }
 public ExceptionDecoratorTarget(ITarget <TIn> decoratedTarget, ILogAgent logAgent, ICancelNetwork cancel)
 {
     m_DecoratedTarget = decoratedTarget;
     m_LogAgent        = logAgent;
     m_Cancel          = cancel;
 }
コード例 #5
0
 public ExceptionDecoratorSource(ISource <TOut> decoratedSource, ILogAgent logAgent, ICancelNetwork cancel)
 {
     m_DecoratedSource = decoratedSource;
     m_LogAgent        = logAgent;
     m_Cancel          = cancel;
 }
コード例 #6
0
 public static ITargetBatchedFunctor <TIn> WithExceptionHandler <TIn>(this ITargetBatched <TIn> decoratedTarget, ILogAgent log, ICancelNetwork cancel)
 {
     return(new ExceptionDecoratorTargetBatched <TIn>(decoratedTarget, log, cancel));
 }
コード例 #7
0
 public static ITransformManyFunctor <TIn, TOut> WithExceptionHandler <TIn, TOut>(this ITransformMany <TIn, TOut> decoratedTransformation, ILogAgent log, ICancelNetwork cancel)
 {
     return(new ExceptionDecoratorTransformMany <TIn, TOut>(decoratedTransformation, log, cancel));
 }
コード例 #8
0
 public static ISourceFunctor <TOut> WithExceptionHandler <TOut>(this ISource <TOut> decoratedSource, ILogAgent logAgent, ICancelNetwork cancel)
 {
     return(new ExceptionDecoratorSource <TOut>(decoratedSource, logAgent, cancel));
 }