Add command handlers and aggregate methods for inventory/equipment commands #38
Labels
No labels
Blocked
Duplicate
MoSCoW/Could Have
MoSCoW/Must Have
MoSCoW/Should Have
Points/1
Points/13
Points/2
Points/21
Points/3
Points/5
Points/8
Priority/Backlog
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
State/Completed
State/In progress
State/In review
State/Paused
State/Unverified
State/Verified
State/Wont Do
Type/Bug
Type/Epic
Type/Feature
Type/Legendary
Type/Task
Type/Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference: aethyr/Aethyr#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
feat(event-sourcing): add inventory and equipment command handlers and aggregate methodsfeature/m1-v12-inventory-es-handlersBackground
4 commands (
AddItemToInventory,RemoveItemFromInventory,EquipItem,UnequipItem) and events are defined but have no command handlers or aggregate methods. They would crash at runtime.Expected Behavior
GameObjectCommandHandlerhandles all 4 inventory/equipment commands.Domain::GameObjecthas corresponding aggregate methods that apply the events.Acceptance Criteria
command_handlers.rbregisters handlers for all 4 commandsdomain.rbGameObjectaggregate hasadd_to_inventory,remove_from_inventory,equip_item,unequip_itemmethods@inventory,@equipment)Subtasks
command_handlers.rbdomain.rbGameObjectonevent handlers indomain.rbfor state applicationbundle exec rake unit, fix any errorsDefinition of Done
This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.