Skip to content

Dummy Mode

Dave Walker edited this page Jan 28, 2025 · 1 revision

The application supports "dummy" mode that does not read from or write to a real data file and uses a set of synthesised service definitions. The output from the application is identical to that when a real data file is used, albeit with dummy service details.

This is useful for testing and documentation purposes!

If dummy mode is enabled, a set of dummy service definitions is generated to provide an initial population of the service list. By default, the services have the following properties:

Property Value Comments
Service Name Service #n "n" is the position of the service in the list, counting up from 1
Account someone@some.domain.com
Secret - Randomly generated string of characters

The service name prefix, account name and the number of services generated in dummy mode are specified in the appsettings.json file.

To run the application in dummy mode, simply append the following to the normal command line:

--dummy

For example, to perform the live view action to list services for a specific account but using dummy mode:

/path/to/OtpGenerator.Terminal --live "service" "account" --dummy

Where:

Argument Comments
/path/to/OtpGenerator.Terminal The path to the OTP Generator binary, named "OtpGenerator.Terminal" on MacOS and Linux and "OtpGenerator.Terminal.exe" on Windows
service The service name
account The account name

Values need only be quoted "..." if they contain special characters or spaces.

Clone this wiki locally