private static StorageCommand GetCommand(ConsoleCommandParser consoleCommandParser, IConsolePrinter consolePrinter) { consolePrinter.PrintСommandWaitingIcon(); string rowCommand = Console.ReadLine(); if (string.IsNullOrWhiteSpace(rowCommand)) { throw new ArgumentException("You have not entered a command."); } return(consoleCommandParser.Parse(rowCommand.ToLower().Trim())); }