private void SetFlashSpeed(IEnumerable <int> deviceIds, BlyncClient.Speed flashSpeed) { foreach (var deviceId in deviceIds) { _blyncClient.SetFlashSpeed(deviceId, flashSpeed); } }
private TestDelegate When_I_flashing_speed(int deviceNumber, BlyncClient.Speed speed) { return(() => _blyncClient.SetFlashSpeed(deviceNumber, speed)); }
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)); }