public void SetUp() { this.mocks = new MockRepository(); workingDirPath = TempFileUtil.CreateTempDir("workingDir"); artifactDirPath = TempFileUtil.CreateTempDir("artifactDir"); Assert.IsTrue(Directory.Exists(workingDirPath)); Assert.IsTrue(Directory.Exists(artifactDirPath)); queue = new IntegrationQueue("foo", new DefaultQueueConfiguration("foo"), null); mockery = new Mockery(); mockSourceControl = mockery.NewStrictMock(typeof (ISourceControl)); mockStateManager = mockery.NewStrictMock(typeof (IStateManager)); mockTrigger = mockery.NewStrictMock(typeof (ITrigger)); mockLabeller = mockery.NewStrictMock(typeof (ILabeller)); mockPublisher = mockery.NewStrictMock((typeof (ITask))); mockTask = mockery.NewStrictMock((typeof (ITask))); project = new Project(); SetupProject(); }
public LockHolder(IntegrationQueue lockingQueue, IList <IIntegrationQueue> lockedQueues) { this.lockingQueue = lockingQueue; this.lockedQueues = lockedQueues; }
public LockHolder(IntegrationQueue lockingQueue, IList<IIntegrationQueue> lockedQueues) { this.lockingQueue = lockingQueue; this.lockedQueues = lockedQueues; }