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(); }
public MainView(IOutput output, VotingBot bot) { _output = output; _bot = bot; }