Ejemplo n.º 1
0
        protected void OnDatatreeviewOrderDocumentsRowActivated(object o, RowActivatedArgs args)
        {
            var selectedItem = datatreeviewOrderDocuments.GetSelectedObject() as SelectedOrdersDocumentVMNode;

            if (selectedItem == null)
            {
                return;
            }

            OrderActivated?.Invoke(this, selectedItem.DocumentId);
        }
Ejemplo n.º 2
0
        public async Task When_Order_Activated_Message_Should_Be_Sent_To_Inventory_Member_On_Lending_Unit()
        {
            var ev = new OrderActivated(orderId, 1);

            await Run(ev, lending_UpdateInventoryMemberId);
        }
Ejemplo n.º 3
0
 public async Task HandleEventAsync(OrderActivated ev)
 {
     var target = new MemberTarget(OrderSide.Lending, Permission.CanUpdateInventory);
     await sender.Send(ev.OrderId, target, MessageType.OrderActivated);
 }