Exemplo n.º 1
0
        /// <summary>
        /// To add a description of the registration error to the table.
        /// </summary>
        /// <param name="fail">Error.</param>
        public void AddRegistrationFail(OrderFail fail)
        {
            if (fail == null)
            {
                throw new ArgumentNullException(nameof(fail));
            }

            var item = _orders.TryGet(fail.Order);

            if (item != null)
            {
                item.Comment = fail.Error.Message;
            }
        }
Exemplo n.º 2
0
 private SecurityItem TryGetItem(Security security)
 {
     return(_securities.TryGet(security));
 }