Skip to content

Maybe better to implement actions as commands #1

@cemozudem

Description

@cemozudem

For command pattern, I would prefer actions implemented as commands, In my opinion, using case/if else statements here defy the purpose of implementing command pattern...

So, instead of this:

        public enum Action
        {
            Deposit, Withdraw
        }

Maybe it's better to use this:

    public class DepositCommand : ICommand{ }
    public class WithdrawCommand : ICommand{}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions