private int Run(Arguments arguments)
{
switch (arguments.ConsoleCommandType)
{
case ConsoleCommandType.DisplayText:
Display();
break;
case ConsoleCommandType.DisplayHtml:
DisplayHtml();
break;
case ConsoleCommandType.ReportToMaster:
ReportToMaster(arguments.MasterEmail);
break;
case ConsoleCommandType.ReportToUsers:
ReportToUsers();
break;
default:
throw new ApplicationException(
string.Format(Resources.WrongCommandMessageFormat, arguments.ConsoleCommandType));
}
return 0;
}