Exemple #1
0
        static void Main(string[] args)
        {
            ChangeFloatingPointCulture();

            IOutput   programOutput = new ConsoleOutput();
            VotingBot bot           = new VotingBot();
            MainView  view          = new MainView(programOutput, bot);

            try
            {
                view.ParseCredentials(args);
                view.Vote();
                view.Finish();
            }
            catch (Exception ex)
            {
                Logger.LogError(ex.Message);
                Console.WriteLine(ex.Message);
            }

            programOutput.ReadLine();
        }
Exemple #2
0
 public MainView(IOutput output, VotingBot bot)
 {
     _output = output;
     _bot    = bot;
 }