public static void CreateProductivityForm(Logger logger) { try { var trackInfoDb = new TrackInfoDb(); var productivityService = new ProductivityService(logger, trackInfoDb); using (var pForm = new ProductivityForm(productivityService)) { pForm.ShowDialog(); } } catch (Exception ex) { logger.Debug(ex, "Unexpected exception when opening the productivity score"); throw; } }
public static void CreateProductivityForm(Logger logger) { try { var productivityService = new ProductivityService(logger); var twitterPersistanceService = new TwitterPersistenceService(logger); var leaderboardApi = new LeaderboardApi(twitterPersistanceService); var versioningService = new VersioningService(leaderboardApi); var tweetMessageService = new TweetMessageService(versioningService); var twitterShareService = new TwitterShareService(twitterPersistanceService, tweetMessageService); using (var pForm = new ProductivityForm(productivityService, twitterShareService)) { pForm.ShowDialog(); } } catch (Exception ex) { logger.Debug(ex, "Unexpected exception when opening the productivity score"); throw; } }