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(); }
public ICalculator WithCompositeDynamicProxy() { return(Decorate.WithCompositeDynamicProxy <ICalculator>(target)); }