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