public CompositeImplementationStoreTest()
        {
            _handler = new MockTaskHandler();

            _mockStore1 = CreateMock <IImplementationStore>();
            _mockStore2 = CreateMock <IImplementationStore>();

            _testStore = new CompositeImplementationStore(new[] { _mockStore1.Object, _mockStore2.Object });
        }
Ejemplo n.º 2
0
        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});
        }
Ejemplo n.º 3
0
        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 });
        }
Ejemplo n.º 4
0
 public void SetUp()
 {
     _handler = new MockTaskHandler();
     _tempDir = new TemporaryDirectory("0install-unit-tests");
     _store   = new DirectoryStore(_tempDir);
 }
Ejemplo n.º 5
0
 public DiskImplementationStoreTest()
 {
     _handler             = new MockTaskHandler();
     _tempDir             = new TemporaryDirectory("0install-unit-tests");
     _implementationStore = new DiskImplementationStore(_tempDir);
 }
Ejemplo n.º 6
0
 public ImplementationStoreTest()
 {
     _handler = new MockTaskHandler();
     _tempDir = new TemporaryDirectory("0install-test-store");
     _store   = new ImplementationStore(_tempDir);
 }
Ejemplo n.º 7
0
 /// <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());
 }
Ejemplo n.º 8
0
 public void SetUp()
 {
     _handler = new MockTaskHandler();
     _tempDir = new TemporaryDirectory("0install-unit-tests");
     _store = new DirectoryStore(_tempDir);
 }
Ejemplo n.º 9
0
        /// <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());
        }