private void SetFlashSpeed(IEnumerable <int> deviceIds, BlyncClient.Speed flashSpeed)
 {
     foreach (var deviceId in deviceIds)
     {
         _blyncClient.SetFlashSpeed(deviceId, flashSpeed);
     }
 }
Beispiel #2
0
 private TestDelegate When_I_flashing_speed(int deviceNumber, BlyncClient.Speed speed)
 {
     return(() => _blyncClient.SetFlashSpeed(deviceNumber, speed));
 }
Beispiel #3
0
 public void Should_not_be_able_to_set_invalid_flashing_speed_for_device(BlyncClient.Speed speed)
 {
     Given_that_I_have_a_client();
     Then_I_should_get_an_arguement_out_of_range_exception(When_I_flashing_speed(0, speed));
 }