public HitResult DoBinaryOptionHit(BetDirection betDirection, DateTime hitTime) { BeforeHitParams hitParams = new BeforeHitParams(this.HitCount, this.BestPrice, this.BestTime, this.BetResult); this.HitCount++; var hitPrice = this.GetHitPrice(); this.BestPrice = hitPrice; this.BestTime = hitTime; this.BetResult = this.CalculateBetResult(hitPrice, betDirection); return(new HitResult(this.BetResult.Value, hitParams)); }
internal HitResult(BetResult betResult, BeforeHitParams beforeHitParams) { _betResult = betResult; _beforeHitParams = beforeHitParams; }