private void CreateMockFactory()
        {
            _factory = new TeamCityFactoryMock();
            TeamCityFactory.Instance = _factory;

            _mockDownload             = new Mock <Model.ITeamCityMetricsDownload>();
            _factory._metricsDownload = _mockDownload.Object;

            _mockTimer      = new Mock <PresenterCommon.ITimer>(MockBehavior.Strict);
            _factory._timer = _mockTimer.Object;
        }
        private void CreateMockFactory(bool useDefaultBranch = true)
        {
            _factory = new TeamCityFactoryMock();
            TeamCityFactory.Instance = _factory;

            _mockServer      = new Mock <TeamCity.Model.ITeamCityServer>(MockBehavior.Strict);
            _factory._server = _mockServer.Object;

            _mockTimer      = new Mock <PresenterCommon.ITimer>(MockBehavior.Strict);
            _factory._timer = _mockTimer.Object;

            _mockServer.SetupSet(m => m.UseDefault = It.Is <bool>(v => v == useDefaultBranch));
        }