public void ForcesBuild() { var parameters = new Dictionary <string, string>(); MockRepository mocks = new MockRepository(MockBehavior.Default); ServerAggregatingCruiseManagerWrapper serverWrapper = InitialiseServerWrapper(mocks, delegate(CruiseServerClientBase manager) { Mock.Get(manager).Setup(_manager => _manager.ForceBuild(It.IsAny <string>(), It.IsAny <List <NameValuePair> >())).Verifiable(); }); serverWrapper.ForceBuild(projectSpecifier, null, parameters); }
public void ForcesBuild() { var parameters = new Dictionary <string, string>(); MockRepository mocks = new MockRepository(); ServerAggregatingCruiseManagerWrapper serverWrapper = InitialiseServerWrapper(mocks, delegate(CruiseServerClientBase manager) { Expect.Call(() => { manager.ForceBuild(projectSpecifier.ProjectName, NameValuePair.FromDictionary(parameters)); }).IgnoreArguments(); }); mocks.ReplayAll(); serverWrapper.ForceBuild(projectSpecifier, null, parameters); }