/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(IPackService packService) { _packService = packService; Ports = new ObservableCollection <Tuple <int, string> >(_packService.GetPorts()); SelectedPort = Ports[0]; ReloadPacks(SelectedPort); SelectedIndex = 0; }
public void GetPortsTest() { var ports = _packService.GetPorts(); CollectionAssert.Contains(ports.Select(t => t.Item1), 8081); }