예제 #1
0
        public void SetUp()
        {
            _webClientFactory = MockRepository.GenerateMock<IWebClientFactory>();
            _webClient = MockRepository.GenerateStub<IWebClient>();

            _webClientFactory.Expect(w => w.GetWebClient(Arg<string>.Is.Anything)).Return(_webClient).Repeat.Once();

            _configSettings = new ConfigSettings { ProjectNameRegEx = ".*" };
            _urlUpdateResponder = new UrlUpdateResponder(
                new StatusFetcher(new CruiseAddress("url"),
                    _configSettings, _webClientFactory), _configSettings, _webClientFactory);

            _configSettings.URL = "currentUrl";
        }
예제 #2
0
        public void SetUp()
        {
            _webClientFactory = MockRepository.GenerateMock <IWebClientFactory>();
            _webClient        = MockRepository.GenerateStub <IWebClient>();

            _webClientFactory.Expect(w => w.GetWebClient(Arg <string> .Is.Anything)).Return(_webClient).Repeat.Once();

            _configSettings = new ConfigSettings {
                ProjectNameRegEx = ".*"
            };
            _urlUpdateResponder = new UrlUpdateResponder(
                new StatusFetcher(new CruiseAddress("url"),
                                  _configSettings, _webClientFactory), _configSettings, _webClientFactory);

            _configSettings.URL = "currentUrl";
        }