public InstructionExecutionContext(InvestorInstruction investorInstruction, Action <InvestorInstructionExecutedEventArgs> instructionExecutedCallBack, Action <string> instructionFailedCallback) { this.Instruction = investorInstruction; this.instructionExecutedCallBack = instructionExecutedCallBack; this.instructionFailedCallback = instructionFailedCallback; this.initialQuantity = investorInstruction.Quantity; this.RemainingQuantityToBeExecuted = investorInstruction.Quantity; this.Price = investorInstruction.Price; this.Way = investorInstruction.Way; this.AllowPartialExecution = investorInstruction.AllowPartialExecution; }
protected bool Equals(InvestorInstruction other) { return(this.InvestorInstructionIdentifier == other.InvestorInstructionIdentifier && this.GoodTill.Equals(other.GoodTill) && this.AllowPartialExecution == other.AllowPartialExecution && this.Price == other.Price && this.Quantity == other.Quantity && this.Way == other.Way); }