July 2019
Intermediate to advanced
410 pages
10h 32m
English
Starting with the QuitCommand, the requirements are pretty straightforward: the command should print a farewell message and then cause the application to end. We have designed the InventoryCommand to return two Booleans to indicate whether the application should quit and whether the command ended successfully:
[TestMethod]public void QuitCommand_Successful(){ var expectedInterface = new Helpers.TestUserInterface( new List<Tuple<string, string>>(), // ReadValue() new List<string> // WriteMessage() { "Thank you for using FlixOne Inventory Management System" }, new List<string>() // WriteWarning() ); // create an instance of the command var command = new QuitCommand(expectedInterface); var result = command.RunCommand(); ...Read now
Unlock full access