public TransientLifecycleTester() { theContext = MockRepository.GenerateMock <ILifecycleContext>(); theLifecycle = new TransientLifecycle(); theCache = MockRepository.GenerateMock <ITransientTracking>(); theContext.Stub(x => x.Transients).Return(theCache); }
public SingletonLifecycleTester() { theContext = MockRepository.GenerateMock <ILifecycleContext>(); theLifecycle = new SingletonLifecycle(); theCache = MockRepository.GenerateMock <IObjectCache>(); theContext.Stub(x => x.Singletons).Return(theCache); }
public void SetUp() { theContext = MockRepository.GenerateMock<ILifecycleContext>(); theLifecycle = new SingletonLifecycle(); theCache = MockRepository.GenerateMock<IObjectCache>(); theContext.Stub(x => x.Singletons).Return(theCache); }
public void SetUp() { theContext = MockRepository.GenerateMock<ILifecycleContext>(); theLifecycle = new TransientLifecycle(); theCache = MockRepository.GenerateMock<IObjectCache>(); theContext.Stub(x => x.Transients).Return(theCache); }
public TransientLifecycleTester() { theContext = MockRepository.GenerateMock<ILifecycleContext>(); theLifecycle = new TransientLifecycle(); theCache = MockRepository.GenerateMock<ITransientTracking>(); theContext.Stub(x => x.Transients).Return(theCache); }
public void SetUp() { theContext = MockRepository.GenerateMock <ILifecycleContext>(); theLifecycle = new TransientLifecycle(); theCache = MockRepository.GenerateMock <IObjectCache>(); theContext.Stub(x => x.Transients).Return(theCache); }