Ejemplo n.º 1
0
 public void Setup()
 {
     Decorate.InitLightInject();
     target      = new Calculator();
     target2     = new CalculatorMarshalled();
     simple      = Decorate.DecorateSimple(target);
     real        = Decorate.WithRealProxy(target2);
     dispatch    = Decorate.WithDispatchProxy <ICalculator>(target);
     composite   = Decorate.WithCompositeDynamicProxy <ICalculator>(target);
     inherited   = Decorate.WithInheritedDynamicProxy <Calculator>();
     lightInject = Decorate.WithLightInject();
     a           = rnd.Next(1000).ToString();
 }
Ejemplo n.º 2
0
 public ICalculator WithCompositeDynamicProxy()
 {
     return(Decorate.WithCompositeDynamicProxy <ICalculator>(target));
 }