Skip to content

Instantly share code, notes, and snippets.

@agross
Created March 10, 2009 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agross/77060 to your computer and use it in GitHub Desktop.
Save agross/77060 to your computer and use it in GitHub Desktop.
public virtual void SetShippedQuantityFor(Operation operation, int shippedQuantity)
{
Ensure.Argument("operation").IsNotNull(operation);
// Update the passed and all remaining operations with the new quantity.
OperationSequence.SkipWhile(o => o != operation).Each(o => o.SetShippedQuantity(shippedQuantity));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment