public TestsExecutionViewModel(AdminProjectSettingsViewModel adminProjectSettingsViewModel)
 {
     Teams = new ObservableCollection <TeamTestsExecutionViewModel>();
     foreach (var cT in adminProjectSettingsViewModel.Teams)
     {
         bool hasSelectedProjects = AreThereSelectedProjects(cT.ObservableProjects);
         if (!hasSelectedProjects)
         {
             continue;
         }
         Teams.Add(new TeamTestsExecutionViewModel(cT.TeamId, cT.Name, cT.ObservableProjects, cT.ObservableAgentMachines));
     }
 }
 public BeforeExecutionProjectSettingsView()
 {
     InitializeComponent();
     AdminProjectSettingsViewModel = new AdminProjectSettingsViewModel();
     mainGrid.DataContext          = AdminProjectSettingsViewModel.GetTeams();
 }
 public BeforeExecutionProjectSettingsView()
 {
     InitializeComponent();
     AdminProjectSettingsViewModel = new AdminProjectSettingsViewModel();
     mainGrid.DataContext = AdminProjectSettingsViewModel.GetTeams();        
 }