public void SetUp()
        {
            logSpy = new LogSpy();
            logSpy.Attach();

            logUtil        = new InvocationLogUtil();
            stringBuilder  = new StringBuilder();
            proxyGenerator = new ProxyGenerator();
            aspect         = new InvocationLoggerAspect(logUtil);
            proxy          = proxyGenerator.CreateClassProxyWithTarget(new DummyObj(), aspect);
        }
Пример #2
0
 public InvocationLoggerAspect(InvocationLogUtil logUtil)
 {
     this.logUtil = logUtil;
 }
Пример #3
0
 public LogExceptionAspect()
 {
     logUtil = new InvocationLogUtil();
 }
 public static void AppendCallInformation(this InvocationLogUtil logUtil,
                                          StringBuilder stringBuilder, IInvocation invocation)
 {
     logUtil.AppendCallInformation(stringBuilder, invocation.Method, invocation.Arguments);
 }
Пример #5
0
 public void SetUp()
 {
     logUtil       = new InvocationLogUtil();
     stringBuilder = new StringBuilder();
 }