예제 #1
0
		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();
		}
예제 #2
0
 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;
 }