Exemplo n.º 1
0
 /// <summary>
 /// Sets the children status to the specified one.
 /// </summary>
 /// <param name="status">The status to set in children.</param>
 public void SetChildrenStatus(BusinessObjectStatus status)
 {
     foreach (T child in this.Children)
     {
         child.Status = status;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates new <see cref="IncomeOutcomeRelation"/> and attaches it to the parent <see cref="WarehouseDocumentLine"/>.
        /// </summary>
        /// <param name="status">The status that has to be set to the newly created <see cref="BusinessObject"/>.</param>
        /// <param name="direction">The relation's direction.</param>
        /// <returns>A new <see cref="IncomeOutcomeRelation"/>.</returns>
        public IncomeOutcomeRelation CreateNew(BusinessObjectStatus status, WarehouseDirection direction)
        {
            IncomeOutcomeRelation relation = this.CreateNew(status);

            relation.Direction = direction;
            return(relation);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates new child according to the contractor's defaults and attaches it to the parent <see cref="BusinessObject"/>.
        /// </summary>
        /// <param name="status">The status that has to be set to the newly created <see cref="BusinessObject"/>.</param>
        /// <returns>A new child.</returns>
        public T CreateNew(BusinessObjectStatus status)
        {
            T obj = this.CreateNew();

            obj.Status = status;

            return(obj);
        }
 public void PropertiesTest()
 {
     var vm = new BusinessObjectStatus();
     TestsHelper.TestPublicDeclaredPropertiesGetSet(vm, true);
 }