Ejemplo n.º 1
0
 public static void Setup()
 {
     Bootstrapper.Run();
     _settingsService = Container.Windsor.Resolve<SettingsService>();
     _twitterClient = Container.Windsor.Resolve<TwitterClient>();
     _twitterClient.CurrentlyLoggedInUserSettings = _settingsService.GetSettings();
 }
Ejemplo n.º 2
0
 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);
 }