/// <summary> /// Initializes a new instance of the <see cref="Command"/> class. /// </summary> public Command(IRunnable runnable, CommandDescriptor commandDescriptor, IDictionary <String, Object> actualArguments) { Assume.NotNull(runnable, nameof(runnable)); Assume.NotNull(commandDescriptor, nameof(commandDescriptor)); Assume.NotNull(actualArguments, nameof(actualArguments)); Runnable = runnable; CommandDescriptor = commandDescriptor; ActualArguments = new ReadOnlyDictionary <String, Object>(actualArguments); }
/// <summary> /// Initializes a new instance of the <see cref="Command"/> class. /// </summary> public Command(IRunnable runnable, CommandDescriptor commandDescriptor) : this(runnable, commandDescriptor, new Dictionary <String, Object>()) { }