public void HasATypeBasedOnServerType()
        {
            var mockConfig = new Mock<IConfig>();
            mockConfig.Setup(x => x.Type).Returns("MonkeyCI");

            _buildServer.Setup(x => x.Config).Returns(mockConfig.Object);
            _buildServerVM = new BuildServerViewModel(_buildServer.Object);

            Assert.AreEqual("MonkeyCI", _buildServerVM.Type);
        }
        public void ExposesPipelinesAsViewModels()
        {
            _buildServer.Setup(x => x.PipelineReports).Returns(new[] {_pipeline1, _pipeline2, _pipeline3});
            _buildServerVM = new BuildServerViewModel(_buildServer.Object);

            _buildServer.Raise(bs => bs.PipelinesUpdated += null, _buildServer.Object.PipelineReports);
            Assert.IsNotNull(_buildServerVM.PipelineReports);
            Assert.AreEqual(3, _buildServerVM.PipelineReports.Count());
            Assert.IsInstanceOf<PipelineReportViewModel>(_buildServerVM.PipelineReports.First());
        }