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"; }
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"; }