public WishListArgument(WishList wishList) { Condition.Requires(wishList).IsNotNull("The WishList cannot be null"); }
public virtual async Task <WishList> Process(CommerceContext commerceContext, WishList wishList, WishListLineComponent line) { WishList result = null; using (CommandActivity.Start(commerceContext, this)) { var context = commerceContext.GetPipelineContextOptions(); result = await _pipeline.Run(new WishListLineArgument(wishList, line), context); } return(result); }
public WishListLineArgument(WishList wishList, WishListLineComponent line) : base(wishList) { Condition.Requires(line).IsNotNull("The line can not be null"); WishList = wishList; Line = line; }