July 2019
Intermediate to advanced
410 pages
10h 32m
English
UpdateQuantityCommand is very similar to AddInventoryCommand and its source is as follows:
internal class UpdateQuantityCommand : NonTerminatingCommand, IParameterisedCommand{ private readonly IInventoryContext _context; internal UpdateQuantityCommand(IUserInterface userInterface, IInventoryContext context) : base(userInterface) { _context = context; } internal string InventoryName { get; private set; } private int _quantity; internal int Quantity { get => _quantity; private set => _quantity = value; } ...}
Like AddInventoryCommand, the UpdateInventoryCommand command is a non-terminating command with parameters. Therefore, it extends the NonTerminatingCommand base class and implements the IParameterisedCommand interface. ...
Read now
Unlock full access