public CommandsRegistry(ICategoriesRepository categoriesRepository) { // TODO: Change to load types from assembly that are assignable to ICommand var idCommand = new IdCommand(categoriesRepository); var levelCommand = new LevelCommand(categoriesRepository); this._knownCommands = new Dictionary <string, ICommand> { { idCommand.CommandName, idCommand }, { levelCommand.CommandName, levelCommand } }; }
public static void GiveLevelCommand(this LevelModelWall model, LevelCommand command) { model.Command = command; model.Command = LevelCommand.None; }