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 });
        }
예제 #4
0
 public void SetUp()
 {
     _handler = new MockTaskHandler();
     _tempDir = new TemporaryDirectory("0install-unit-tests");
     _store   = new DirectoryStore(_tempDir);
 }
예제 #5
0
 public DiskImplementationStoreTest()
 {
     _handler             = new MockTaskHandler();
     _tempDir             = new TemporaryDirectory("0install-unit-tests");
     _implementationStore = new DiskImplementationStore(_tempDir);
 }
예제 #6
0
 public ImplementationStoreTest()
 {
     _handler = new MockTaskHandler();
     _tempDir = new TemporaryDirectory("0install-test-store");
     _store   = new ImplementationStore(_tempDir);
 }
예제 #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());
 }
 public void SetUp()
 {
     _handler = new MockTaskHandler();
     _tempDir = new TemporaryDirectory("0install-unit-tests");
     _store = new DirectoryStore(_tempDir);
 }
예제 #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());
        }