Пример #1
0
        public void WhenDevicesExist_ThenDetectThem()
        {
            var sut = new SonosDiscoveryService();

            sut.StartScan();

            Thread.Sleep(3000);

            Assert.That(sut.Players.Count, Is.GreaterThan(0));
        }
Пример #2
0
 private void scanButton_Click(object sender, EventArgs e)
 {
     ResetOutput();
     PrintOutput("Scaning...");
     _discoveryService.StartScan();
 }