示例#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();
        }
        public void SetUp()
        {
            workingDirPath  = TempFileUtil.CreateTempDir("workingDirectory");
            artifactDirPath = TempFileUtil.CreateTempDir("artifactDirectory");
            Assert.IsTrue(Directory.Exists(workingDirPath));
            Assert.IsTrue(Directory.Exists(artifactDirPath));

            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)));

            project1 = new Project();
            project2 = new Project();
            SetupProjects();
        }