protected override void TestSetup() { eventListener = new StatisticsEventListener(); CacheBuilder .AddEventListener(eventListener) .For<ObjectWithParametersOnCachedMethod>() .CacheMethod(c => c.CachedMethod(null)) .As<IObjectWithParametersOnCachedMethod>(); factory = CacheBuilder.BuildFactory(); component = factory.Create<IObjectWithParametersOnCachedMethod>(); }
protected override void TestSetup() { eventListener = new StatisticsEventListener(); CacheBuilder .AddEventListener(eventListener) .For <ObjectWithParametersOnCachedMethod>() .CacheMethod(c => c.CachedMethod(null)) .As <IObjectWithParametersOnCachedMethod>(); factory = CacheBuilder.BuildFactory(); component = factory.Create <IObjectWithParametersOnCachedMethod>(); }