public void TestCleanup()
 {
     this.mockService.Dispose();
     this.mockService = null;
     this.mockBuildInfo.TestsPassed = null;
     this.mockBuildInfo.TestsFailed = null;
 }
Пример #2
0
        public BuildHandler()
        {
            var buildServerService = new MockBuildServerService();

            buildServerService.Error += OnError;

            this.server = new TeamBuildServer(buildServerService);
        }
Пример #3
0
        private void OnStartup(object sender, StartupEventArgs e)
        {
            MockBuildServerService service       = new MockBuildServerService();
            IDomainProjectPicker   projectPicker = new MockDomainProjectPicker();

            TeamBuildDesktop teamBuildDesktop = new TeamBuildDesktop(service, projectPicker, "Team Build Screen Demo");

            teamBuildDesktop.Startup();
        }
        public void TestInitialize()
        {
            string teamProject    = "Team Project";
            string definitionName = "Definition Name";
            string configuration  = "Configuration";
            string platform       = "Platform";

            this.key           = string.Format("{0};{1}", teamProject, definitionName);
            this.mockService   = new MockBuildServerService();
            this.mockBuildInfo = new MockBuildInfo(BuildStatus.Stopped, "Requested For", DateTime.MinValue, true, DateTime.MinValue);
            this.model         = new BuildInfoModel(teamProject, definitionName, configuration, platform, this.mockService);

            this.viewModel = new BuildInfoViewModel(this.model);
        }
 public void TestCleanup()
 {
     this.mockService.Dispose();
     this.mockService = null;
 }
 public void TestInitialize()
 {
     this.mockService = new MockBuildServerService();
     this.viewModel   = new BuildServerServiceMessageViewModel(this.mockService);
 }