public CompositeImplementationStoreTest() { _handler = new MockTaskHandler(); _mockStore1 = CreateMock <IImplementationStore>(); _mockStore2 = CreateMock <IImplementationStore>(); _testStore = new CompositeImplementationStore(new[] { _mockStore1.Object, _mockStore2.Object }); }
public override void SetUp() { base.SetUp(); _handler = new MockTaskHandler(); // Prepare mock objects that will be injected with methods in the tests _mockStore1 = MockRepository.Create<IStore>(); _mockStore2 = MockRepository.Create<IStore>(); _testStore = new CompositeStore(new[] {_mockStore1.Object, _mockStore2.Object}); }
public override void SetUp() { base.SetUp(); _handler = new MockTaskHandler(); // Prepare mock objects that will be injected with methods in the tests _mockStore1 = MockRepository.Create <IStore>(); _mockStore2 = MockRepository.Create <IStore>(); _testStore = new CompositeStore(new[] { _mockStore1.Object, _mockStore2.Object }); }
public void SetUp() { _handler = new MockTaskHandler(); _tempDir = new TemporaryDirectory("0install-unit-tests"); _store = new DirectoryStore(_tempDir); }
public DiskImplementationStoreTest() { _handler = new MockTaskHandler(); _tempDir = new TemporaryDirectory("0install-unit-tests"); _implementationStore = new DiskImplementationStore(_tempDir); }
public ImplementationStoreTest() { _handler = new MockTaskHandler(); _tempDir = new TemporaryDirectory("0install-test-store"); _store = new ImplementationStore(_tempDir); }
/// <summary> /// Hook that can be used to register objects in the <see cref="AutoMockContainer"/> before the <see cref="Target"/> is constructed. /// </summary> protected virtual void Register(AutoMockContainer container) { container.Register <ITaskHandler>(Handler = new MockTaskHandler()); container.Register(Config = new Config()); container.Register(TrustDB = new TrustDB()); }
/// <summary> /// Hook that can be used to register objects in the <see cref="AutoMockContainer"/> before the <see cref="Target"/> is constructed. /// </summary> protected virtual void Register(AutoMockContainer container) { container.Register <ITaskHandler>(MockHandler = new MockTaskHandler()); container.Register(new Config()); }