As a FightWasteConsole developer
I want to be able to create a dummy meal file of any size
So I can test interaction with data
This too will be a command
Command example
generatedummy -count 50
Where:
generatedummy is the command
count is the argument
50 is the number of meal models the user would like the file to be populated with
The console should notify the user:
The name and path of the file generated
The milliseconds taken to create the file
It is important that the population of the models is not random. This is because when we are comparing time taken to run the population of models in the original app and the asynchronous fork, the operations should be the same.
How to ensure consistent output?
The command will populate the models according to some predetermined pattern.
There will be a method which determines the name of the meal according to facts about the index of the current iteration of the loop
This too will be a command
Command example
generatedummy -count 50
Where:
generatedummy
is the commandcount
is the argument50
is the number of meal models the user would like the file to be populated withThe console should notify the user:
It is important that the population of the models is not random. This is because when we are comparing time taken to run the population of models in the original app and the asynchronous fork, the operations should be the same.
How to ensure consistent output?
The command will populate the models according to some predetermined pattern.
There will be a method which determines the name of the meal according to facts about the index of the current iteration of the loop