/// <summary> /// Fires the <see cref="BuildQueueRemoved"/> event. /// </summary> /// <param name="buildQueue">The build queue that was added.</param> protected void FireBuildQueueRemoved(BuildQueue buildQueue) { if (BuildQueueRemoved != null) { var args = new BuildQueueChangedArgs(buildQueue); BuildQueueRemoved(this, args); } }
public void ConstructorSetsBuildQueue() { var mocks = new MockRepository(); var client = mocks.DynamicMock<CruiseServerClientBase>(); var watcher = mocks.Stub<IServerWatcher>(); var monitor = new Server(client, watcher); var queue = new BuildQueue(client, monitor, new QueueSnapshot()); var args = new BuildQueueChangedArgs(queue); Assert.AreSame(queue, args.BuildQueue); }