public void ForceBuild(Dictionary <string, string> parameters, string userName) { AttemptActionWithRetry(delegate() { cruiseProjectManager.ForceBuild(serverMonitor.SessionToken, parameters, userName); }); }
public void CanForceABuild() { Dictionary <string, string> parameters = new Dictionary <string, string>(); Mock.Get(mockCruiseManager).Setup(_mockCruiseManager => _mockCruiseManager.ForceBuild(It.IsAny <string>(), It.IsAny <List <NameValuePair> >())); Mock.Get(mockCruiseManager).SetupSet(_mockCruiseManager => _mockCruiseManager.SessionToken = It.IsAny <string>()); manager.ForceBuild(null, parameters, null); repository.VerifyAll(); }
public void CanForceABuild() { Dictionary <string, string> parameters = new Dictionary <string, string>(); Expect.Call(() => { mockCruiseManager.ForceBuild(null, null); }) .IgnoreArguments(); Expect.Call(mockCruiseManager.SessionToken).PropertyBehavior(); repository.ReplayAll(); manager.ForceBuild(null, parameters, null); repository.VerifyAll(); }
public void ForceBuild() { cruiseProjectManager.ForceBuild(); }