public static void Setup() { Bootstrapper.Run(); _settingsService = Container.Windsor.Resolve<SettingsService>(); _twitterClient = Container.Windsor.Resolve<TwitterClient>(); _twitterClient.CurrentlyLoggedInUserSettings = _settingsService.GetSettings(); }
public DebugViewModel(TwitterClient twitterClient, SettingsService settingsService) { _twitterClient = twitterClient; _settingsService = settingsService; Settings = new List<Settings>(); CurrentlyLoggedInUser = new List<User>(); CurrentlyLoggedInUserSettings = new List<Settings>(); this.Settings.Add(_settingsService.GetSettings()); this.CurrentlyLoggedInUser.Add(_twitterClient.CurrentlyLoggedInUser); this.CurrentlyLoggedInUserSettings.Add(_twitterClient.CurrentlyLoggedInUserSettings); }